From 8bf9ad1c31a4a92aa3874192da3191868cdfd107 Mon Sep 17 00:00:00 2001 From: pogokeen Date: Wed, 30 May 2018 12:01:42 +0000 Subject: [PATCH] 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 --- source/build/src/engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index e92b44be2..cdce1377f 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -9842,7 +9842,7 @@ static void PolymostProcessVoxels(void) if (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]); } }