amend minor regression bug: in 'canJump' function, check to make sure prevPlatform is lower than nextPlatform
This commit is contained in:
@@ -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) =
|
||||||
|
|||||||
Reference in New Issue
Block a user