summaryrefslogtreecommitdiff
path: root/src/field_weather_effect.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-10-17 11:32:30 -0400
committerGitHub <noreply@github.com>2021-10-17 11:32:30 -0400
commit164590e37d67a385bf6479aafcbe5b351891bc0b (patch)
treec3d4cac1627512d166440ead47d9f2285c8b4044 /src/field_weather_effect.c
parenta4a3c1c9e5a0026415330eab9bea2f8f3e83e0a3 (diff)
parent1f39c34ca47e43b0afccaabe97d1df19e3f0b39b (diff)
Merge pull request #1512 from GriffinRichards/minor-constants
Add some misc constants/usage
Diffstat (limited to 'src/field_weather_effect.c')
-rw-r--r--src/field_weather_effect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/field_weather_effect.c b/src/field_weather_effect.c
index 732158733..27ade478f 100644
--- a/src/field_weather_effect.c
+++ b/src/field_weather_effect.c
@@ -1,6 +1,7 @@
#include "global.h"
#include "battle_anim.h"
#include "event_object_movement.h"
+#include "fieldmap.h"
#include "field_weather.h"
#include "overworld.h"
#include "random.h"
@@ -189,7 +190,7 @@ static void CreateCloudSprites(void)
{
gWeatherPtr->sprites.s1.cloudSprites[i] = &gSprites[spriteId];
sprite = gWeatherPtr->sprites.s1.cloudSprites[i];
- SetSpritePosToMapCoords(sCloudSpriteMapCoords[i].x + 7, sCloudSpriteMapCoords[i].y + 7, &sprite->x, &sprite->y);
+ SetSpritePosToMapCoords(sCloudSpriteMapCoords[i].x + MAP_OFFSET, sCloudSpriteMapCoords[i].y + MAP_OFFSET, &sprite->x, &sprite->y);
sprite->coordOffsetEnabled = TRUE;
}
else