mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Fixed #1526
This commit is contained in:
parent
6d38bb3617
commit
c757422f2d
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue