summaryrefslogtreecommitdiff
path: root/engine/overworld/dungeon_warps.asm
blob: f47dfb0172ce29c9cd3c93cccee0849de248fcdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
IsPlayerOnDungeonWarp:
	xor a
	ld [wWhichDungeonWarp], a
	ld a, [wd72d]
	bit 4, a
	ret nz
	call ArePlayerCoordsInArray
	ret nc
	ld a, [wCoordIndex]
	ld [wWhichDungeonWarp], a
	ld hl, wd72d
	set 4, [hl]
	ld hl, wd732
	set 4, [hl]
	ret