- fixed: since A_LightGoesOut alters a sector's floor plane it must also alter the TexZ for that sector's floor.

This commit is contained in:
Christoph Oelckers 2014-05-03 10:12:25 +02:00
parent 34360e7975
commit a9f1b54d2d

View file

@ -89,8 +89,11 @@ DEFINE_ACTION_FUNCTION(AActor, A_LightGoesOut)
sec->SetLightLevel(0);
newheight = sec->FindLowestFloorSurrounding (&spot);
fixed_t oldtheight = sec->floorplane.Zat0();
newheight = sec->FindLowestFloorSurrounding(&spot);
sec->floorplane.d = sec->floorplane.PointToDist (spot, newheight);
fixed_t newtheight = sec->floorplane.Zat0();
sec->ChangePlaneTexZ(sector_t::floor, newtheight - oldtheight);
for (int i = 0; i < 8; ++i)
{