diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-04-16 01:30:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-16 01:30:03 -0400 |
commit | c1da6b29bc853df1a42f08adb9b141de747dae55 (patch) | |
tree | 4a29484dd11d60bb13edc449adaa2e409f444af4 /src/battle_anim_water.c | |
parent | 70d0b81fe08e4b3baa5c3c7f8e81909c74477eb7 (diff) | |
parent | f94540c2b875cff0085149b95728d2f0a0c610eb (diff) |
Merge pull request #1405 from GriffinRichards/constants-display
Add more usage of DISPLAY constants, misc REG constants
Diffstat (limited to 'src/battle_anim_water.c')
-rw-r--r-- | src/battle_anim_water.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/battle_anim_water.c b/src/battle_anim_water.c index 43849645e..d9cfeab9a 100644 --- a/src/battle_anim_water.c +++ b/src/battle_anim_water.c @@ -487,8 +487,8 @@ void AnimTask_CreateRaindrops(u8 taskId) gTasks[taskId].data[0]++; if (gTasks[taskId].data[0] % gTasks[taskId].data[2] == 1) { - x = Random2() % 240; - y = Random2() % 80; + x = Random2() % DISPLAY_WIDTH; + y = Random2() % (DISPLAY_HEIGHT / 2); CreateSprite(&gRainDropSpriteTemplate, x, y, 4); } if (gTasks[taskId].data[0] == gTasks[taskId].data[3]) |