From 3649b73eca599701db818dbbf470b1b17e660083 Mon Sep 17 00:00:00 2001 From: Astatin Date: Fri, 7 Mar 2025 15:01:07 +0900 Subject: Fix walk on deleted objects + fix out of vblank on dialogue close and object draw --- main.gbasm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.gbasm') diff --git a/main.gbasm b/main.gbasm index 177a6db..6cff1bc 100644 --- a/main.gbasm +++ b/main.gbasm @@ -65,6 +65,9 @@ .END .MACRODEF ENABLE_VBLANK_INTERRUPTS + LD A, $reg_interrupt_flags + RES 0, A + LD $reg_interrupt_flags, A LD A, $03 LD $reg_interrupt_enable, A .END @@ -154,7 +157,6 @@ New_Dungeon: .SET_WINDOW_LCDC_E .ENABLE_TOP_BAR .ENABLE_VBLANK_INTERRUPTS - .HBLANK_WAIT EI Wait_for_Interrupt.loop: HALT @@ -162,7 +164,6 @@ New_Dungeon: JP =Wait_for_Interrupt.loop VBLANK_Entrypoint: - DBG .SET_WINDOW_LCDC_E .ENABLE_TOP_BAR @@ -202,7 +203,6 @@ VBLANK_Entrypoint: .skip_stop: LD $dbg_var A - DBG ; LYC LD A, $0a LD $reg_lyc, A -- cgit v1.2.3-70-g09d2