engine.cpp: fix issue introduced in r6905 where voxels with fractional scaling would not be handled correctly in Polymost

git-svn-id: https://svn.eduke32.com/eduke32@6907 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
pogokeen 2018-05-30 12:01:42 +00:00
parent 014cf67753
commit 8bf9ad1c31

View file

@ -9842,7 +9842,7 @@ static void PolymostProcessVoxels(void)
if (voxfilenames[i]) if (voxfilenames[i])
{ {
voxmodels[i] = voxload(voxfilenames[i]); voxmodels[i] = voxload(voxfilenames[i]);
voxmodels[i]->scale = voxscale[i]>>16; voxmodels[i]->scale = voxscale[i]*(1.f/65536.f);
DO_FREE_AND_NULL(voxfilenames[i]); DO_FREE_AND_NULL(voxfilenames[i]);
} }
} }