diff options
author | Marcus Huderle <huderlem@gmail.com> | 2018-12-29 11:35:27 -0600 |
---|---|---|
committer | Marcus Huderle <huderlem@gmail.com> | 2018-12-29 11:40:12 -0600 |
commit | 229177f7c65282e973367e09f03716c10b03c102 (patch) | |
tree | 890b5be09dff78d75f84e5f2918beee1625ebbd6 /src | |
parent | 8eea0925c5ca6aa8b3d4b0f86c84154446c17b85 (diff) |
Use anim weather constants
Diffstat (limited to 'src')
-rwxr-xr-x | src/battle_anim_effects_3.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/battle_anim_effects_3.c b/src/battle_anim_effects_3.c index e3592b2e2..a901f7a79 100755 --- a/src/battle_anim_effects_3.c +++ b/src/battle_anim_effects_3.c @@ -5320,15 +5320,15 @@ static void sub_81603F4(struct Sprite *sprite) void AnimTask_GetWeather(u8 taskId) { - gBattleAnimArgs[7] = 0; + gBattleAnimArgs[7] = ANIM_WEATHER_NONE; if (gWeatherMoveAnim & WEATHER_SUN_ANY) - gBattleAnimArgs[7] = 1; + gBattleAnimArgs[7] = ANIM_WEATHER_SUN; else if (gWeatherMoveAnim & WEATHER_RAIN_ANY) - gBattleAnimArgs[7] = 2; + gBattleAnimArgs[7] = ANIM_WEATHER_RAIN; else if (gWeatherMoveAnim & WEATHER_SANDSTORM_ANY) - gBattleAnimArgs[7] = 3; + gBattleAnimArgs[7] = ANIM_WEATHER_SANDSTORM; else if (gWeatherMoveAnim & WEATHER_HAIL_ANY) - gBattleAnimArgs[7] = 4; + gBattleAnimArgs[7] = ANIM_WEATHER_HAIL; DestroyAnimVisualTask(taskId); } |