summaryrefslogtreecommitdiff
path: root/home/npc_movement.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/npc_movement.asm')
-rw-r--r--home/npc_movement.asm8
1 files changed, 8 insertions, 0 deletions
diff --git a/home/npc_movement.asm b/home/npc_movement.asm
index 200d3983..40942bf3 100644
--- a/home/npc_movement.asm
+++ b/home/npc_movement.asm
@@ -49,4 +49,12 @@ EndNPCMovementScript::
farjp _EndNPCMovementScript
DebugPressedOrHeldB::
+IF DEF(_DEBUG)
+ ldh a, [hJoyHeld]
+ bit BIT_B_BUTTON, a
+ ret nz
+ ldh a, [hJoyPressed]
+ bit BIT_B_BUTTON, a
+ ret
+ENDC
ret