From 28bde6ae0a66c4826cc23eb7a5eae2290143f675 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Mon, 18 Nov 2024 16:17:52 +0100 Subject: [PATCH] Fixed take damage debug buttons --- src/player.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/player.s b/src/player.s index 78bba70..d53bf2f 100644 --- a/src/player.s +++ b/src/player.s @@ -173,8 +173,7 @@ player_update: ld a, 1 ; make sure we do not mess with hl push hl - ; hl = player_x right now - dec hl ; hl = player_y == player_base + ; hl = player_y right now push de ; de will get used in take damage call player_take_damage ; call for UI redraw @@ -191,7 +190,8 @@ player_update: ld a, 1 ; make sure we do not mess with hl push hl - ; hl = player_x right now + ; hl = player_y right now + inc hl inc hl inc hl ; hl = player_hp call player_gain_resource -- 2.30.2