blob: 17cc3904c3856dcd04adb0b7e7e73b57826a6669 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
; Quick-warp menu, opened with SELECT in the overworld (hooked in
; home/overworld.asm). Reuses the game's fly-warp machinery: set the
; destination map and the fly-warp flags, then return to the overworld loop,
; which fades out and warps us in at the destination's fly coordinates.
SECTION "Warp Menu", ROMX
WarpMenu::
; B1 (pipeline validation): unconditionally warp to Pallet Town.
ld a, PALLET_TOWN
ld [wDestinationMap], a
ld hl, wStatusFlags6
set BIT_FLY_WARP, [hl]
ASSERT wStatusFlags6 + 1 == wStatusFlags7
inc hl
set BIT_USED_FLY, [hl]
ret
|