Fixed sector floor offset compatibility parameter after floatification

See https://forum.zdoom.org/viewtopic.php?t=54690
This commit is contained in:
alexey.lysiuk 2016-12-23 10:09:10 +02:00 committed by Christoph Oelckers
parent 7dd51d6d1c
commit 2327359d74

View file

@ -533,8 +533,9 @@ void SetCompatibilityParams()
if (CompatParams[i+1] < numsectors) if (CompatParams[i+1] < numsectors)
{ {
sector_t *sec = &sectors[CompatParams[i+1]]; sector_t *sec = &sectors[CompatParams[i+1]];
sec->floorplane.ChangeHeight(CompatParams[i+2]); const double delta = CompatParams[i + 2] / 65536.0;
sec->ChangePlaneTexZ(sector_t::floor, CompatParams[i+2] / 65536.); sec->floorplane.ChangeHeight(delta);
sec->ChangePlaneTexZ(sector_t::floor, delta);
} }
i += 3; i += 3;
break; break;