summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-07-17 15:16:54 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-07-17 15:16:54 -0400
commitf53341efa170a322392e5d9cf094128a52041b1d (patch)
tree94cc8fe981292ce794eee6e647ae0a040e1f2023 /engine
parentef9cb892fdee558305071fe9d22c0f633b199f38 (diff)
Define constants for subanimations' base coords and frame block modes
Diffstat (limited to 'engine')
-rwxr-xr-xengine/battle/animations.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/battle/animations.asm b/engine/battle/animations.asm
index dae13ba0..85019fa1 100755
--- a/engine/battle/animations.asm
+++ b/engine/battle/animations.asm
@@ -132,15 +132,15 @@ DrawFrameBlock:
jp nz, .loop ; go back up if there are more tiles to draw
.afterDrawingTiles
ld a, [wFBMode]
- cp 2
+ cp FRAMEBLOCKMODE_02
jr z, .advanceFrameBlockDestAddr; skip delay and don't clean OAM buffer
ld a, [wSubAnimFrameDelay]
ld c, a
call DelayFrames
ld a, [wFBMode]
- cp 3
+ cp FRAMEBLOCKMODE_03
jr z, .advanceFrameBlockDestAddr ; skip cleaning OAM buffer
- cp 4
+ cp FRAMEBLOCKMODE_04
jr z, .done ; skip cleaning OAM buffer and don't advance the frame block destination address
ld a, [wAnimationID]
cp GROWL