update: fixed rendering of actors...
authorLukas Krickl <lukas@krickl.dev>
Thu, 1 Jan 2026 16:51:14 +0000 (17:51 +0100)
committerLukas Krickl <lukas@krickl.dev>
Thu, 1 Jan 2026 16:51:14 +0000 (17:51 +0100)
The code was in fact not correctly checking if an exit was present.

src/update.s

index d763be2fbd1a43d2399b67e7ba87f4d55a5ebd66..8a5dd56889d4bb4bf788829abbc617d97fbb488d 100644 (file)
@@ -41,10 +41,11 @@ update_game_over:
        ; check if we can go forward one more time
        ; if not jump to @done_act_draw
        ld de, t_flags0
+       add hl, de
        ld b, [hl]
        ld a, [dir_tf_forward]
        and a, b
-       jp nz, @done_act_draw
+       jp z, @done_act_draw
 #endmacro
 
 update_game: