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:
@@ -4,8 +4,8 @@ LevelSelectionMenu::
|
||||
ldh [hMapAnims], a
|
||||
ldh [hSCY], a
|
||||
ldh [hSCX], a
|
||||
ld a, 1 << 2 ; do not clear wShadowOAM during DoNextFrameForAllSprites
|
||||
ld [wVramState], a
|
||||
ld a, 1 << DONT_CLEAR_SHADOW_OAM_IN_SPRITE_ANIMS_F
|
||||
ld [wStateFlags], a
|
||||
|
||||
call ClearBGPalettes
|
||||
call ClearTilemap
|
||||
@@ -306,7 +306,7 @@ LevelSelectionMenu::
|
||||
farcall ClearSpriteAnims
|
||||
call ClearSprites
|
||||
xor a
|
||||
ld [wVramState], a
|
||||
ld [wStateFlags], a
|
||||
ret ; nc
|
||||
|
||||
LevelSelectionMenu_LoadGFX:
|
||||
|
@@ -614,7 +614,7 @@ _ExitMenu::
|
||||
ret
|
||||
|
||||
RestoreOverworldMapTiles: ; unreferenced
|
||||
ld a, [wVramState]
|
||||
ld a, [wStateFlags]
|
||||
bit 0, a
|
||||
ret z
|
||||
xor a ; sScratch
|
||||
|
@@ -9,10 +9,10 @@
|
||||
const TRAINERCARDSTATE_QUIT ; 6
|
||||
|
||||
TrainerCard:
|
||||
ld a, [wVramState]
|
||||
ld a, [wStateFlags]
|
||||
push af
|
||||
xor a
|
||||
ld [wVramState], a
|
||||
ld [wStateFlags], a
|
||||
ld hl, wOptions
|
||||
ld a, [hl]
|
||||
push af
|
||||
@@ -34,7 +34,7 @@ TrainerCard:
|
||||
pop af
|
||||
ld [wOptions], a
|
||||
pop af
|
||||
ld [wVramState], a
|
||||
ld [wStateFlags], a
|
||||
ret
|
||||
|
||||
.InitRAM:
|
||||
|
Reference in New Issue
Block a user