fix bug in tracing left jump path: we should consider rightmost x coordinate from enemy (which we now do)

This commit is contained in:
2025-02-01 01:33:26 +00:00
parent 9e9675aaab
commit 0a9ab389c2

View File

@@ -103,7 +103,7 @@ struct
end
fun traceLeftJumpAscent (x, y, remainingJump, nextPlatID, platTree) =
if remainingJump >= Constants.jumpLimit - Constants.enemySize then
if x <= 0 orelse remainingJump >= Constants.jumpLimit - Constants.enemySize then
traceLeftDescent (x, y, nextPlatID, platTree)
else
let
@@ -124,6 +124,7 @@ struct
fun traceLeftJump (enemy: GameType.enemy, nextPlatID, platTree) =
let
val {x, y, ...} = enemy
val x = x + 75
open GameType
in