summaryrefslogtreecommitdiff
path: root/src/hall_of_fame.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-04-15 02:04:01 -0400
committerGriffinR <griffin.g.richards@gmail.com>2021-04-15 02:22:24 -0400
commit62abcecc54ac810dc082e5e822be4796a5064ece (patch)
treeea79fccbe0bc68db7ad69433a40b48ea71fd0d61 /src/hall_of_fame.c
parentc4ef45c161ef0d51478476a916010c619e94a732 (diff)
More usage of DISPLAY constants
Diffstat (limited to 'src/hall_of_fame.c')
-rw-r--r--src/hall_of_fame.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hall_of_fame.c b/src/hall_of_fame.c
index 037acd09c..3eb8d3f0a 100644
--- a/src/hall_of_fame.c
+++ b/src/hall_of_fame.c
@@ -1398,7 +1398,7 @@ static bool8 CreateHofConfettiSprite(void)
u8 spriteID;
struct Sprite* sprite;
- s16 posX = Random() % 240;
+ s16 posX = Random() % DISPLAY_WIDTH;
s16 posY = -(Random() % 8);
spriteID = CreateSprite(&sSpriteTemplate_HofConfetti, posX, posY, 0);
@@ -1505,7 +1505,7 @@ static void Task_DoDomeConfetti(u8 taskId)
id = ConfettiUtil_AddNew(&sOamData_Confetti,
TAG_CONFETTI,
TAG_CONFETTI,
- Random() % 240,
+ Random() % DISPLAY_WIDTH,
-(Random() % 8),
Random() % ARRAY_COUNT(sAnims_Confetti),
id);