- Fixed: Floor_RaiseAndCrush did not subtract 8 from the lowest ceiling's height when determining

a destination height. (It did subtract 8, but in the wrong place.)

SVN r2490 (trunk)
This commit is contained in:
Randy Heit 2010-08-07 03:36:56 +00:00
parent 9a025fbb23
commit b59162a33a

View file

@ -358,7 +358,7 @@ manual_floor:
floor->m_Direction = 1; floor->m_Direction = 1;
newheight = sec->FindLowestCeilingSurrounding (&spot); newheight = sec->FindLowestCeilingSurrounding (&spot);
if (floortype == DFloor::floorRaiseAndCrush) if (floortype == DFloor::floorRaiseAndCrush)
floor->m_FloorDestDist -= 8 * FRACUNIT; newheight -= 8 * FRACUNIT;
ceilingheight = sec->FindLowestCeilingPoint (&spot2); ceilingheight = sec->FindLowestCeilingPoint (&spot2);
floor->m_FloorDestDist = sec->floorplane.PointToDist (spot, newheight); floor->m_FloorDestDist = sec->floorplane.PointToDist (spot, newheight);
if (sec->floorplane.ZatPointDist (spot2, floor->m_FloorDestDist) > ceilingheight) if (sec->floorplane.ZatPointDist (spot2, floor->m_FloorDestDist) > ceilingheight)