Rename wVramState to wStateFlags and use flag constants (#1078)

This commit is contained in:
xCrystal
2024-01-07 14:27:22 +01:00
parent 5be9856f3a
commit f72f078c0e
31 changed files with 125 additions and 120 deletions

View File

@@ -1941,7 +1941,7 @@ FinishExitMenu::
ReturnToMapWithSpeechTextbox::
push af
ld a, $1
ld a, TRUE
ld [wSpriteUpdatesEnabled], a
call ClearBGPalettes
call ClearSprites
@@ -1949,8 +1949,8 @@ ReturnToMapWithSpeechTextbox::
hlcoord 0, 12
lb bc, 4, 18
call Textbox
ld hl, wVramState
set 0, [hl]
ld hl, wStateFlags
set SPRITE_UPDATES_DISABLED_F, [hl]
call UpdateSprites
call WaitBGMap2
ld b, SCGB_MAPPALS