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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user