From 9e30beb7d278be6acdfc8efedbd06307496d2daf Mon Sep 17 00:00:00 2001 From: Humza Shahid Date: Sun, 22 Dec 2024 18:25:26 +0000 Subject: [PATCH] remove some unnecessary destructuring --- fcore/player.sml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fcore/player.sml b/fcore/player.sml index b09f5e0..8f44c9c 100644 --- a/fcore/player.sml +++ b/fcore/player.sml @@ -372,7 +372,7 @@ struct * where player can walk through enemies without receiving damage * in which case enemy collisions don't count * *) - case #attacked player of + case attacked of NOT_ATTACKED => let val {x, y, ...} = player @@ -450,7 +450,7 @@ struct fun getInputPatches (player: player, input) = let - val {x, y, yAxis, health, jumpPressed, attacked, facing, ...} = player + val {x, y, yAxis, jumpPressed, facing, ...} = player val {leftHeld, rightHeld, upHeld, downHeld, attackHeld} = input val xAxis = getXAxis (leftHeld, rightHeld)