mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-18 15:11:46 +00:00
- 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:
parent
34360e7975
commit
a9f1b54d2d
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue