From 2327359d74c7a5af518f64287903c0c62bdf2039 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 23 Dec 2016 10:09:10 +0200 Subject: [PATCH] Fixed sector floor offset compatibility parameter after floatification See https://forum.zdoom.org/viewtopic.php?t=54690 --- src/compatibility.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/compatibility.cpp b/src/compatibility.cpp index 60f9d8ad6..742f43eee 100644 --- a/src/compatibility.cpp +++ b/src/compatibility.cpp @@ -533,8 +533,9 @@ void SetCompatibilityParams() if (CompatParams[i+1] < numsectors) { sector_t *sec = §ors[CompatParams[i+1]]; - sec->floorplane.ChangeHeight(CompatParams[i+2]); - sec->ChangePlaneTexZ(sector_t::floor, CompatParams[i+2] / 65536.); + const double delta = CompatParams[i + 2] / 65536.0; + sec->floorplane.ChangeHeight(delta); + sec->ChangePlaneTexZ(sector_t::floor, delta); } i += 3; break;