summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Winwood <twwinwood@gmail.com>2018-01-22 06:35:10 +0000
committerThomas Winwood <twwinwood@gmail.com>2018-01-22 06:35:10 +0000
commit796d331df605f17b3e5d89d494d89ce7a907eaab (patch)
tree8c45832c6c32dfeda40af43b1653469838a4ce6e
parent68a402883f780a61f54c2f0c8740429d0b2b3a81 (diff)
Use BATTLE_TYPE_DOUBLE constant in guard.c
-rw-r--r--src/battle/anim/guard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/battle/anim/guard.c b/src/battle/anim/guard.c
index ab093eab1..01cf07e39 100644
--- a/src/battle/anim/guard.c
+++ b/src/battle/anim/guard.c
@@ -12,7 +12,7 @@ extern u16 gBattleTypeFlags;
void sub_80D3014(struct Sprite *sprite)
{
- if ((gBattleTypeFlags & 1) && IsAnimBankSpriteVisible(gAnimBankAttacker ^ 2))
+ if ((gBattleTypeFlags & BATTLE_TYPE_DOUBLE) && IsAnimBankSpriteVisible(gAnimBankAttacker ^ 2))
{
sub_807A3FC(gAnimBankAttacker, 0, &sprite->pos1.x, &sprite->pos1.y);
sprite->pos1.y += 40;