summaryrefslogtreecommitdiff
path: root/scripts/route22.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-06-16 13:57:26 -0700
committeryenatch <yenatch@gmail.com>2014-06-16 13:57:26 -0700
commitb36f793667924f868282ce979fabab3e95d642a5 (patch)
tree580af2e7c0afc016ccf7a31b44e98898321176ac /scripts/route22.asm
parentd10108a066c102bf2d167ac656d79308e41f304e (diff)
Use macros for predef calls/jumps instead of static ids.
Diffstat (limited to 'scripts/route22.asm')
-rwxr-xr-xscripts/route22.asm12
1 files changed, 4 insertions, 8 deletions
diff --git a/scripts/route22.asm b/scripts/route22.asm
index d9fce630..aba6a479 100755
--- a/scripts/route22.asm
+++ b/scripts/route22.asm
@@ -82,8 +82,7 @@ Route22Script0: ; 50f00 (14:4f00)
ld [wcd4f], a
xor a
ld [wcd50], a
- ld a, $4c
- call Predef
+ predef EmotionBubble
ld a, [wd700]
and a
jr z, .asm_50f4e ; 0x50f44 $8
@@ -208,8 +207,7 @@ Route22Script3: ; 5102a (14:502a)
ld [wJoyIgnore], a
ld a, $22
ld [wcc4d], a
- ld a, $11
- call Predef
+ predef HideObject
call Func_2307
ld hl, wd7eb
res 0, [hl]
@@ -223,8 +221,7 @@ Route22Script_5104e: ; 5104e (14:504e)
ld [wcd4f], a
xor a
ld [wcd50], a
- ld a, $4c
- call Predef
+ predef EmotionBubble
ld a, [wd700]
and a
jr z, .skipYVisibilityTesta
@@ -355,8 +352,7 @@ Route22Script6: ; 51151 (14:5151)
ld [wJoyIgnore], a
ld a, $23
ld [wcc4d], a
- ld a, $11
- call Predef
+ predef HideObject
call Func_2307
ld hl, wd7eb
res 1, [hl]