summaryrefslogtreecommitdiff
path: root/src/field_weather_effect.c
diff options
context:
space:
mode:
authorPhlosioneer <mattmdrr2@gmail.com>2019-04-01 18:31:10 -0400
committerhuderlem <huderlem@gmail.com>2019-04-02 07:41:50 -0500
commit201c0953ae4f6c6b65958065f009cbaee3c8f3ee (patch)
tree3ead6c3826b100b44953797026678e56c2780843 /src/field_weather_effect.c
parent1aa95a1821cd4ebe552a39bbfed067a305071e31 (diff)
Cleanup OamData entries
Diffstat (limited to 'src/field_weather_effect.c')
-rw-r--r--src/field_weather_effect.c29
1 files changed, 11 insertions, 18 deletions
diff --git a/src/field_weather_effect.c b/src/field_weather_effect.c
index 6ec83f1a0..1468f7ca0 100644
--- a/src/field_weather_effect.c
+++ b/src/field_weather_effect.c
@@ -1513,18 +1513,15 @@ void LoadAshSpriteSheet(void)
const struct OamData gOamData_839ABB8 =
{
.y = 0,
- .affineMode = 0,
- .objMode = 1,
- .mosaic = 0,
- .bpp = 0,
+ .affineMode = ST_OAM_AFFINE_OFF,
+ .objMode = ST_OAM_OBJ_BLEND,
+ .bpp = ST_OAM_4BPP,
.shape = SPRITE_SHAPE(64x64),
.x = 0,
- .matrixNum = 0,
.size = SPRITE_SIZE(64x64),
.tileNum = 0,
.priority = 1,
.paletteNum = 15,
- .affineParam = 0,
};
const union AnimCmd gSpriteAnim_839ABC0[] =
@@ -1750,18 +1747,15 @@ void CreateFog2Sprites(void)
const struct OamData gOamData_839ABF0 =
{
.y = 0,
- .affineMode = 0,
- .objMode = 1,
- .mosaic = 0,
- .bpp = 0,
+ .affineMode = ST_OAM_AFFINE_OFF,
+ .objMode = ST_OAM_OBJ_BLEND,
+ .bpp = ST_OAM_4BPP,
.shape = SPRITE_SHAPE(64x64),
.x = 0,
- .matrixNum = 0,
.size = SPRITE_SIZE(64x64),
.tileNum = 0,
.priority = 2,
.paletteNum = 0,
- .affineParam = 0,
};
const union AnimCmd gSpriteAnim_839ABF8[] =
@@ -1949,18 +1943,15 @@ void sub_80800E4(void)
const struct OamData gOamData_839AC1C =
{
.y = 0,
- .affineMode = 0,
- .objMode = 1,
- .mosaic = 0,
- .bpp = 0,
+ .affineMode = ST_OAM_AFFINE_OFF,
+ .objMode = ST_OAM_OBJ_BLEND,
+ .bpp = ST_OAM_4BPP,
.shape = SPRITE_SHAPE(64x64),
.x = 0,
- .matrixNum = 0,
.size = SPRITE_SIZE(64x64),
.tileNum = 0,
.priority = 1,
.paletteNum = 0,
- .affineParam = 0,
};
const union AnimCmd gSpriteAnim_839AC24[] =
@@ -2470,3 +2461,5 @@ static void UpdateRainCounter(u8 newWeather, u8 oldWeather)
&& (newWeather == WEATHER_RAIN_LIGHT || newWeather == WEATHER_RAIN_MED))
IncrementGameStat(GAME_STAT_GOT_RAINED_ON);
}
+
+