aboutsummaryrefslogtreecommitdiffstats
path: root/engine/special_warps.asm
diff options
context:
space:
mode:
authorDaniel Harding <33dannye@gmail.com>2018-02-05 11:13:02 -0600
committerGitHub <noreply@github.com>2018-02-05 11:13:02 -0600
commit37ded1d150197b3784bc351eeeb0a8d9713c2e35 (patch)
treefcb7bd8f3090cb9f7b47a76af7e474122efe36e4 /engine/special_warps.asm
parentMerge pull request #174 from Rangi42/master (diff)
parentAdd space between arguments in assembly instructions and remove redundant a i... (diff)
downloadpokeyellow-37ded1d150197b3784bc351eeeb0a8d9713c2e35.tar.gz
pokeyellow-37ded1d150197b3784bc351eeeb0a8d9713c2e35.tar.xz
pokeyellow-37ded1d150197b3784bc351eeeb0a8d9713c2e35.zip
Merge pull request #171 from xCrystal/master
Misc style fixes
Diffstat (limited to 'engine/special_warps.asm')
-rw-r--r--engine/special_warps.asm30
1 files changed, 15 insertions, 15 deletions
diff --git a/engine/special_warps.asm b/engine/special_warps.asm
index de00a817..3a8b8b86 100644
--- a/engine/special_warps.asm
+++ b/engine/special_warps.asm
@@ -1,31 +1,31 @@
SpecialWarpIn:
call LoadSpecialWarpData
predef LoadTilesetHeader
- ld hl,wd732
- bit 2,[hl] ; dungeon warp or fly warp?
- res 2,[hl]
- jr z,.next
+ ld hl, wd732
+ bit 2, [hl] ; dungeon warp or fly warp?
+ res 2, [hl]
+ jr z, .next
; if dungeon warp or fly warp
- ld a,[wDestinationMap]
+ ld a, [wDestinationMap]
jr .next2
.next
- bit 1,[hl]
- jr z,.next3
+ bit 1, [hl]
+ jr z, .next3
call EmptyFunc
.next3
- ld a,0
+ ld a, 0
.next2
- ld b,a
- ld a,[wd72d]
+ ld b, a
+ ld a, [wd72d]
and a
- jr nz,.next4
- ld a,b
+ jr nz, .next4
+ ld a, b
.next4
- ld hl,wd732
- bit 4,[hl] ; dungeon warp?
+ ld hl, wd732
+ bit 4, [hl] ; dungeon warp?
ret nz
; if not dungeon warp
- ld [wLastMap],a
+ ld [wLastMap], a
ret
; gets the map ID, tile block map view pointer, tileset, and coordinates