You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Persist level selection menu landmark when coming back (#12)
This commit is contained in:
@@ -26,6 +26,8 @@ if DEF(_DEBUG)
|
||||
ld a, -1
|
||||
ld [wUnlockedLevels], a ; debug
|
||||
endc
|
||||
xor a ; LANDMARK_LEVEL_1
|
||||
ld [wDefaultLevelSelectionMenuLandmark], a
|
||||
farcall AutoSaveGameOutsideOverworld
|
||||
jp GameMenu
|
||||
|
||||
|
@@ -17,7 +17,7 @@ LevelSelectionMenu::
|
||||
ld a, LCDC_DEFAULT
|
||||
ldh [rLCDC], a
|
||||
|
||||
xor a
|
||||
ld a, [wDefaultLevelSelectionMenuLandmark]
|
||||
ld [wLevelSelectionMenuCurrentLandmark], a
|
||||
call LevelSelectionMenu_GetLandmarkPage
|
||||
ld [wLevelSelectionMenuCurrentPage], a
|
||||
@@ -1002,6 +1002,7 @@ _LevelSelectionMenuHandleTransition:
|
||||
; set new landmark
|
||||
ld a, [de]
|
||||
ld [wLevelSelectionMenuCurrentLandmark], a
|
||||
ld [wDefaultLevelSelectionMenuLandmark], a
|
||||
; make the player sprite face down as the default state
|
||||
ld hl, SPRITEANIMSTRUCT_ANIM_SEQ_ID
|
||||
add hl, bc
|
||||
|
Reference in New Issue
Block a user