Revert "fix invalid polymodels if words_need_alignment=1"

This reverts commit 60edaa7dce.

This commit was brought in through a merge to obtain a different change,
and was supposed to be suppressed in preference to the change from
dfcb0fcdc.  Revert it here, since reloading the variable suffices to fix
the problem, and this commit forces a reload on all platforms, rather
than only reloading on platforms that need it.
This commit is contained in:
Kp 2020-07-07 04:09:44 +00:00
parent 2e979c954d
commit b814434181

View file

@ -691,9 +691,9 @@ void polygon_model_data_read(polymodel *pm, PHYSFS_File *fp)
if constexpr (words_bigendian)
swap_polygon_model_data(pm->model_data.get());
#if defined(DXX_BUILD_DESCENT_I)
g3_validate_polygon_model(pm->model_data.get(), pm->model_data_size);
g3_validate_polygon_model(pm->model_data.get(), model_data_size);
#elif defined(DXX_BUILD_DESCENT_II)
g3_init_polygon_model(pm->model_data.get(), pm->model_data_size);
g3_init_polygon_model(pm->model_data.get(), model_data_size);
#endif
}
}