summaryrefslogtreecommitdiff
path: root/engine/overworld/dungeon_warps.asm
diff options
context:
space:
mode:
authorluckytyphlosion <alan.rj.huang@gmail.com>2016-05-22 21:02:18 -0400
committerluckytyphlosion <alan.rj.huang@gmail.com>2016-05-22 21:02:18 -0400
commitf3de3a20dfccb8a57cdf9feb860bf1e89a733f50 (patch)
tree5d3f60d4b7fdcf44f4202e7db915213d041f663d /engine/overworld/dungeon_warps.asm
parent3da00e31f8698c1b994c24ca55b5b9c3d3454af8 (diff)
Bank11 and 14 misc functions.
Diffstat (limited to 'engine/overworld/dungeon_warps.asm')
-rw-r--r--engine/overworld/dungeon_warps.asm15
1 files changed, 15 insertions, 0 deletions
diff --git a/engine/overworld/dungeon_warps.asm b/engine/overworld/dungeon_warps.asm
new file mode 100644
index 00000000..b234c3a1
--- /dev/null
+++ b/engine/overworld/dungeon_warps.asm
@@ -0,0 +1,15 @@
+IsPlayerOnDungeonWarp: ; 46bf3 (11:6bf3)
+ 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 \ No newline at end of file