From b59162a33a811d6811ece840ff8017b5168c5da8 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sat, 7 Aug 2010 03:36:56 +0000 Subject: [PATCH] - 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) --- src/p_floor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_floor.cpp b/src/p_floor.cpp index 00407a36c..fa3a01e09 100644 --- a/src/p_floor.cpp +++ b/src/p_floor.cpp @@ -358,7 +358,7 @@ manual_floor: floor->m_Direction = 1; newheight = sec->FindLowestCeilingSurrounding (&spot); if (floortype == DFloor::floorRaiseAndCrush) - floor->m_FloorDestDist -= 8 * FRACUNIT; + newheight -= 8 * FRACUNIT; ceilingheight = sec->FindLowestCeilingPoint (&spot2); floor->m_FloorDestDist = sec->floorplane.PointToDist (spot, newheight); if (sec->floorplane.ZatPointDist (spot2, floor->m_FloorDestDist) > ceilingheight)