amend minor regression bug: in 'canJump' function, check to make sure prevPlatform is lower than nextPlatform

This commit is contained in:
2025-01-24 02:12:04 +00:00
parent 02d94fc3c7
commit d07b0a35ca

View File

@@ -189,8 +189,9 @@ struct
val {x = nPlatX, y = nPlatY, width = nPlatW, ...} = nextPlatform val {x = nPlatX, y = nPlatY, width = nPlatW, ...} = nextPlatform
val nPlatFinishX = nPlatX + nPlatW val nPlatFinishX = nPlatX + nPlatW
in in
isBetween (nPlatX, pPlatX, nPlatFinishX) (isBetween (nPlatX, pPlatX, nPlatFinishX)
orelse isBetween (nPlatX, pPlatFinishX, nPlatFinishX) orelse isBetween (nPlatX, pPlatFinishX, nPlatFinishX))
andalso pPlatY > nPlatY
end end
fun getJumpPatches (nextPlatform, platformTree, enemy, acc) = fun getJumpPatches (nextPlatform, platformTree, enemy, acc) =