This commit is contained in:
Lwmte 2024-12-24 01:34:36 +01:00
parent 6d38bb3617
commit c757422f2d

View file

@ -546,7 +546,7 @@ namespace TEN::Collision::Floordata
// For bridges with zero thickness (which is incorrect setup, but still possible), break out of
// infinite loop caused by infinite traversal over the same height value.
int nextPos = sector->GetBridgeSurfaceHeight(pos, !isBottom);
if (nextPos = pos.y)
if (nextPos == pos.y)
nextPos += (isBottom ? 1 : -1);
// Set vertical position to lowest bridge ceiling height or highest bridge floor height.