diff --git a/src/sprites.asm b/src/sprites.asm index a96af5f..650dd91 100644 --- a/src/sprites.asm +++ b/src/sprites.asm @@ -49,11 +49,9 @@ OAMDMA:: jr nz, :- ; Jump to the current state's vblank handler. - ld a, [wStateVBlankHandler] - ld l, a - ld a, [wStateVBlankHandler + 1] - ld h, a - jp hl + ldh a, [hGameState] + jp nz, BlitField + jp GameLoop ENDL OAMDMAEnd::