summaryrefslogtreecommitdiff
path: root/src/battle_anim_ground.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-04-16 01:30:03 -0400
committerGitHub <noreply@github.com>2021-04-16 01:30:03 -0400
commitc1da6b29bc853df1a42f08adb9b141de747dae55 (patch)
tree4a29484dd11d60bb13edc449adaa2e409f444af4 /src/battle_anim_ground.c
parent70d0b81fe08e4b3baa5c3c7f8e81909c74477eb7 (diff)
parentf94540c2b875cff0085149b95728d2f0a0c610eb (diff)
Merge pull request #1405 from GriffinRichards/constants-display
Add more usage of DISPLAY constants, misc REG constants
Diffstat (limited to 'src/battle_anim_ground.c')
-rw-r--r--src/battle_anim_ground.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/battle_anim_ground.c b/src/battle_anim_ground.c
index 6dc9c5815..aa089394e 100644
--- a/src/battle_anim_ground.c
+++ b/src/battle_anim_ground.c
@@ -353,7 +353,7 @@ static void AnimTask_DigBounceMovement(u8 taskId)
else
gBattle_BG2_Y = task->data[13] - task->data[5];
- gSprites[task->data[10]].pos2.x = 272 - gSprites[task->data[10]].pos1.x;
+ gSprites[task->data[10]].pos2.x = DISPLAY_WIDTH + 32 - gSprites[task->data[10]].pos1.x;
task->data[0]++;
}
break;
@@ -405,7 +405,7 @@ static void AnimTask_DigSetVisibleUnderground(u8 taskId)
task->data[10] = GetAnimBattlerSpriteId(ANIM_ATTACKER);
gSprites[task->data[10]].invisible = FALSE;
gSprites[task->data[10]].pos2.x = 0;
- gSprites[task->data[10]].pos2.y = 160 - gSprites[task->data[10]].pos1.y;
+ gSprites[task->data[10]].pos2.y = DISPLAY_HEIGHT - gSprites[task->data[10]].pos1.y;
task->data[0]++;
break;
case 1: