From 8add60ed3855787ed29af07097d62e0ff019142a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 24 Mar 2016 19:24:33 +0100 Subject: [PATCH] - fixed: Getting the nearest ceiling height failed for height-less actors. --- src/p_sectors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_sectors.cpp b/src/p_sectors.cpp index 27c8493ea..25cd0ead8 100644 --- a/src/p_sectors.cpp +++ b/src/p_sectors.cpp @@ -952,7 +952,7 @@ fixed_t sector_t::NextHighestCeilingAt(fixed_t x, fixed_t y, fixed_t bottomz, fi fixed_t delta1 = bottomz - (ff_bottom + ((ff_top - ff_bottom) / 2)); fixed_t delta2 = topz - (ff_bottom + ((ff_top - ff_bottom) / 2)); - if (ff_bottom < realceil && abs(delta1) >= abs(delta2)) + if (ff_bottom < realceil && abs(delta1) > abs(delta2)) { if (resultsec) *resultsec = sec; if (resultffloor) *resultffloor = rover;