From: Lukas Krickl Date: Tue, 8 Oct 2024 05:16:22 +0000 (+0200) Subject: Fixed bug that overwrote de when taking damage X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=56c796405235d1047affbe83e27202c2e5ed790b;p=gbrg%2F.git Fixed bug that overwrote de when taking damage --- 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: