mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Merge branch 'develop' into develop_mirrors
This commit is contained in:
commit
32f94c2f2a
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
|
// 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.
|
// infinite loop caused by infinite traversal over the same height value.
|
||||||
int nextPos = sector->GetBridgeSurfaceHeight(pos, !isBottom);
|
int nextPos = sector->GetBridgeSurfaceHeight(pos, !isBottom);
|
||||||
if (nextPos = pos.y)
|
if (nextPos == pos.y)
|
||||||
nextPos += (isBottom ? 1 : -1);
|
nextPos += (isBottom ? 1 : -1);
|
||||||
|
|
||||||
// Set vertical position to lowest bridge ceiling height or highest bridge floor height.
|
// Set vertical position to lowest bridge ceiling height or highest bridge floor height.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue