- fixed: Getting the nearest ceiling height failed for height-less actors.

This commit is contained in:
Christoph Oelckers 2016-03-24 19:24:33 +01:00
parent a9ef8cc637
commit 8add60ed38
1 changed files with 1 additions and 1 deletions

View File

@ -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;