Save game and clear board menu cursor position during game menu (#17)

This commit is contained in:
xCrystal
2023-10-07 19:08:54 +02:00
parent da956ed7e4
commit 917db30e98
10 changed files with 13 additions and 13 deletions

View File

@@ -122,13 +122,15 @@ GameMenu_WorldMap:
xor a
ld [wDontPlayMapMusicOnReload], a ; play map music
ld [wLinkMode], a
ld hl, wGameTimerPaused
ld [wBoardMenuLastCursorPosition], a
ld hl, wGameTimer
set GAME_TIMER_COUNTING_F, [hl] ; start game timer counter
farcall OverworldLoop
; return from overworld loop
call ClearBGPalettes
call ClearSprites
farcall AutoSaveGameOutsideOverworld
ret
GameMenu_Shop:

View File

@@ -21,8 +21,6 @@ MainMenu:
ld b, CGB_DIPLOMA
call GetCGBLayout
call SetPalettes
ld hl, wGameTimerPaused
res GAME_TIMER_COUNTING_F, [hl]
call MainMenu_GetWhichMenu
ld [wWhichIndexSet], a
call MainMenu_PrintCurrentTimeAndDay