Do not reset wCurTurn and wCurSpace if entering from save in overworld [Bug fix to previous commit] (#24)

This commit is contained in:
xCrystal 2023-10-18 18:07:46 +02:00
parent 3291b82069
commit fbfd582926

View File

@ -131,10 +131,15 @@ StartMap:
call ByteFill call ByteFill
farcall InitCallReceiveDelay farcall InitCallReceiveDelay
call ClearJoypad call ClearJoypad
; initialize board state ; initialize board state
ld a, [hMapEntryMethod]
cp MAPSETUP_ENTERLEVEL
jr nz, .not_starting_level
xor a xor a
ld [wCurTurn], a ld [wCurTurn], a
ld [wCurSpace], a ld [wCurSpace], a
.not_starting_level
ld a, BOARDEVENT_DISPLAY_MENU ld a, BOARDEVENT_DISPLAY_MENU
ldh [hCurBoardEvent], a ldh [hCurBoardEvent], a
; fallthrough ; fallthrough