From 8e8e5b0a483e4ca704fb3710777fc740d782c1f4 Mon Sep 17 00:00:00 2001 From: villadelfia Date: Wed, 18 Oct 2023 02:10:56 +0000 Subject: [PATCH] Update 'src/state_gameplay.asm' --- src/state_gameplay.asm | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/state_gameplay.asm b/src/state_gameplay.asm index 81d97cf..fb93043 100644 --- a/src/state_gameplay.asm +++ b/src/state_gameplay.asm @@ -70,16 +70,8 @@ SwitchToGameplay:: ld [wModeCounter], a ; Install the event loop handlers. - ld hl, GamePlayEventLoopHandler - ld a, l - ld [wStateEventHandler], a - ld a, h - ld [wStateEventHandler + 1], a - ld hl, BlitField - ld a, l - ld [wStateVBlankHandler], a - ld a, h - ld [wStateVBlankHandler + 1], a + ld a, 1 + ldh [hGameState], a ; And turn the LCD back on before we start. ldh a, [rLCDC]