aboutsummaryrefslogtreecommitdiffstats
path: root/engine/overworld/movement.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 /engine/overworld/movement.asm
parentUse macros to define predefs. (diff)
downloadpokeyellow-b36f793667924f868282ce979fabab3e95d642a5.tar.gz
pokeyellow-b36f793667924f868282ce979fabab3e95d642a5.tar.xz
pokeyellow-b36f793667924f868282ce979fabab3e95d642a5.zip
Use macros for predef calls/jumps instead of static ids.
Diffstat (limited to 'engine/overworld/movement.asm')
-rw-r--r--engine/overworld/movement.asm3
1 files changed, 1 insertions, 2 deletions
diff --git a/engine/overworld/movement.asm b/engine/overworld/movement.asm
index 374b8ea6..f8dd5fc4 100644
--- a/engine/overworld/movement.asm
+++ b/engine/overworld/movement.asm
@@ -458,8 +458,7 @@ InitializeSpriteScreenPosition: ; 50bd (1:50bd)
; tests if sprite is off screen or otherwise unable to do anything
CheckSpriteAvailability: ; 50dc (1:50dc)
- ld a, $12
- call Predef
+ predef IsObjectHidden
ld a, [$ffe5]
and a
jp nz, .spriteInvisible