mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Do not reset wCurTurn and wCurSpace if entering from save in overworld [Bug fix to previous commit] (#24)
This commit is contained in:
parent
3291b82069
commit
fbfd582926
@ -131,10 +131,15 @@ StartMap:
|
||||
call ByteFill
|
||||
farcall InitCallReceiveDelay
|
||||
call ClearJoypad
|
||||
|
||||
; initialize board state
|
||||
ld a, [hMapEntryMethod]
|
||||
cp MAPSETUP_ENTERLEVEL
|
||||
jr nz, .not_starting_level
|
||||
xor a
|
||||
ld [wCurTurn], a
|
||||
ld [wCurSpace], a
|
||||
.not_starting_level
|
||||
ld a, BOARDEVENT_DISPLAY_MENU
|
||||
ldh [hCurBoardEvent], a
|
||||
; fallthrough
|
||||
|
Loading…
Reference in New Issue
Block a user