summaryrefslogtreecommitdiff
path: root/src/field_weather.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-03-21 20:28:42 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-03-21 20:28:42 -0400
commitf6565a15d403cf5878c4fbcfd30f4885ea77480f (patch)
tree09f24887d94c7904d13c21dc479eef1c5d37223c /src/field_weather.c
parent30c265118c359aca67a96214d50fd14f6979c005 (diff)
Style fixes; attempt to match help_system NONMATCHING
Diffstat (limited to 'src/field_weather.c')
-rw-r--r--src/field_weather.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/field_weather.c b/src/field_weather.c
index 249aad2b6..e36f1a23c 100644
--- a/src/field_weather.c
+++ b/src/field_weather.c
@@ -127,7 +127,7 @@ static const u8 sBasePaletteGammaTypes[32] = {
GAMMA_NORMAL,
};
-const u16 gDefaultWeatherSpritePalette[] = INCBIN_U16("graphics/field_effects/unk_83C2CE0.gbapal");
+const u16 gDefaultWeatherSpritePalette[] = INCBIN_U16("graphics/weather/default.gbapal");
const u16 gCloudsWeatherPalette[] = INCBIN_U16("graphics/weather/cloud.gbapal");
const u16 gSandstormWeatherPalette[] = INCBIN_U16("graphics/weather/sandstorm.gbapal");
const u8 gWeatherFogDiagonalTiles[] = INCBIN_U8("graphics/weather/fog_diagonal.4bpp");
@@ -350,8 +350,8 @@ static void UpdateWeatherGammaShift(void)
static void FadeInScreenWithWeather(void)
{
- if (++gWeatherPtr->fade_in_counter > 1)
- gWeatherPtr->fade_in_active = 0;
+ if (++gWeatherPtr->fadeInCounter > 1)
+ gWeatherPtr->fadeInActive = 0;
switch (gWeatherPtr->currWeather)
{
@@ -775,8 +775,8 @@ void FadeScreen(u8 mode, s8 delay)
BeginNormalPaletteFade(0xFFFFFFFF, delay, 16, 0, fadeColor);
gWeatherPtr->palProcessingState = WEATHER_PAL_STATE_SCREEN_FADING_IN;
- gWeatherPtr->fade_in_active = 1;
- gWeatherPtr->fade_in_counter = 0;
+ gWeatherPtr->fadeInActive = 1;
+ gWeatherPtr->fadeInCounter = 0;
Weather_SetBlendCoeffs(gWeatherPtr->currBlendEVA, gWeatherPtr->currBlendEVB);
gWeatherPtr->readyForInit = TRUE;
}
@@ -843,8 +843,8 @@ void FadeSelectedPals(u8 mode, s8 delay, u32 selectedPalettes)
BeginNormalPaletteFade(selectedPalettes, delay, 16, 0, fadeColor);
gWeatherPtr->palProcessingState = WEATHER_PAL_STATE_SCREEN_FADING_IN;
- gWeatherPtr->fade_in_active = 1;
- gWeatherPtr->fade_in_counter = 0;
+ gWeatherPtr->fadeInActive = 1;
+ gWeatherPtr->fadeInCounter = 0;
Weather_SetBlendCoeffs(gWeatherPtr->currBlendEVA, gWeatherPtr->currBlendEVB);
gWeatherPtr->readyForInit = TRUE;
}
@@ -864,7 +864,7 @@ void UpdateSpritePaletteWithWeather(u8 spritePaletteIndex)
switch (gWeatherPtr->palProcessingState)
{
case WEATHER_PAL_STATE_SCREEN_FADING_IN:
- if (gWeatherPtr->fade_in_active != 0)
+ if (gWeatherPtr->fadeInActive != 0)
{
if (gWeatherPtr->currWeather == WEATHER_FOG_HORIZONTAL)
MarkFogSpritePalToLighten(paletteIndex);
@@ -902,7 +902,7 @@ void ApplyWeatherGammaShiftToPal(u8 paletteIndex)
static u8 IsWeatherFadingIn(void)
{
if (gWeatherPtr->palProcessingState == WEATHER_PAL_STATE_SCREEN_FADING_IN)
- return gWeatherPtr->fade_in_active;
+ return gWeatherPtr->fadeInActive;
else
return 0;
}