fix a purely visual bug: do not transition to 'DROP_BELOW_PLATFORM state when player is touching ground wall

This commit is contained in:
2025-06-10 13:01:05 +01:00
parent da86e79115
commit 4b6d917be9
3 changed files with 30 additions and 37 deletions

View File

@@ -52,14 +52,7 @@ struct
end)
fun helpAttackEnemies
( player
, defeatedList
, enemyMap
, fallingMap
, enemyTree
, pos
, boxes
) =
(player, defeatedList, enemyMap, fallingMap, enemyTree, pos, boxes) =
if pos = Vector.length boxes then
let
val defeatedList = Vector.fromList defeatedList
@@ -114,14 +107,7 @@ struct
| FACING_LEFT => Vector.sub (Whip.leftFrames, frame)
in
helpAttackEnemies
( player
, []
, enemyMap
, fallingMap
, enemyTree
, 0
, boxes
)
(player, [], enemyMap, fallingMap, enemyTree, 0, boxes)
end
| _ => (player, enemyMap, fallingMap)
end