You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
wVramState -> wStateFlags and define flag constants (from pokecrystal f72f078c0e68736adf81f6c45c84f0c1e127a231)
This commit is contained in:
@@ -33,10 +33,10 @@ PokeGear:
|
||||
push af
|
||||
ld a, $1
|
||||
ldh [hInMenu], a
|
||||
ld a, [wVramState]
|
||||
ld a, [wStateFlags]
|
||||
push af
|
||||
xor a
|
||||
ld [wVramState], a
|
||||
ld [wStateFlags], a
|
||||
call .InitTilemap
|
||||
call DelayFrame
|
||||
.loop
|
||||
@@ -54,7 +54,7 @@ PokeGear:
|
||||
call PlaySFX
|
||||
call WaitSFX
|
||||
pop af
|
||||
ld [wVramState], a
|
||||
ld [wStateFlags], a
|
||||
pop af
|
||||
ldh [hInMenu], a
|
||||
pop af
|
||||
@@ -1589,10 +1589,10 @@ _TownMap:
|
||||
ld a, $1
|
||||
ldh [hInMenu], a
|
||||
|
||||
ld a, [wVramState]
|
||||
ld a, [wStateFlags]
|
||||
push af
|
||||
xor a
|
||||
ld [wVramState], a
|
||||
ld [wStateFlags], a
|
||||
|
||||
call ClearBGPalettes
|
||||
call ClearTilemap
|
||||
@@ -1632,7 +1632,7 @@ _TownMap:
|
||||
|
||||
.resume
|
||||
pop af
|
||||
ld [wVramState], a
|
||||
ld [wStateFlags], a
|
||||
pop af
|
||||
ldh [hInMenu], a
|
||||
pop af
|
||||
|
Reference in New Issue
Block a user