From: Lukas Krickl Date: Mon, 11 Aug 2025 18:29:48 +0000 (+0200) Subject: door opening: Fixed animation getting stuck. X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=20dcc923ea6093e9a9d8017b1d5f4abea86c6454;p=gbrg%2F.git door opening: Fixed animation getting stuck. This was caused because the cf flag was never cleared if the player did not move. --- diff --git a/src/player.s b/src/player.s index 89d5f64..92a10b5 100644 --- a/src/player.s +++ b/src/player.s @@ -86,14 +86,16 @@ unit_player_remove_door: add hl, de ld a, [hl+] ; load y ld b, a - ld a, [hl] ; load x + ld a, [hl+] ; load x ld c, a + xor a, a + ld [hl], a ; clear cf call map_get_tile pop de ; schedule animation push_all - ; call objanim_door_open + call objanim_door_open pop_all ; remove door tile, door flag