From 9fd7542629e0ae8f8a7426298608ffcf95600fea Mon Sep 17 00:00:00 2001 From: Ariel A <24759293+aarant@users.noreply.github.com> Date: Thu, 9 Feb 2023 00:15:18 -0500 Subject: [PATCH] Fixed nighttime WEATHER_DOWNPOUR gamma shift. --- src/field_weather.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/field_weather.c b/src/field_weather.c index 4f9b72ea75..a875b7ec39 100644 --- a/src/field_weather.c +++ b/src/field_weather.c @@ -483,7 +483,7 @@ static void ApplyColorMap(u8 startPalIndex, u8 numPalettes, s8 colorMapIndex) palOffset = startPalIndex * 16; UpdateAltBgPalettes(palettes & PALETTES_BG); // Thunder gamma-shift looks bad on night-blended palettes, so ignore time blending in some situations - if (!(colorMapIndex > 3 && gWeatherPtr->currWeather == WEATHER_RAIN_THUNDERSTORM) && MapHasNaturalLight(gMapHeader.mapType)) + if (!(colorMapIndex > 3) && MapHasNaturalLight(gMapHeader.mapType)) UpdatePalettesWithTime(palettes); else CpuFastCopy(gPlttBufferUnfaded + palOffset, gPlttBufferFaded + palOffset, 32 * numPalettes);