From 56c796405235d1047affbe83e27202c2e5ed790b Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Tue, 8 Oct 2024 07:16:22 +0200 Subject: [PATCH] Fixed bug that overwrote de when taking damage --- src/player.s | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/player.s b/src/player.s index e5076ab..bc8d1e6 100644 --- a/src/player.s +++ b/src/player.s @@ -110,11 +110,13 @@ player_update: ; make sure we do not mess with hl push hl ; hl = player_x right now - dec hl ; hl = player_y == player_base + dec hl ; hl = player_y == player_base + push de ; de will get used in take damage call player_take_damage ; call for UI redraw ld a, UI_REDRAW_HP ld [ui_flags], a + pop de pop hl @nota: -- 2.30.2