Fix truck fade being cancelled (#8617)

This commit is contained in:
FosterProgramming 2025-12-23 19:44:26 +01:00 committed by GitHub
parent 58d0143115
commit 4d5ac99d71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1716,11 +1716,12 @@ static void OverworldBasic(void)
gTimeUpdateCounter = (SECONDS_PER_MINUTE * 60 / FakeRtc_GetSecondsRatio());
UpdateTimeOfDay();
FormChangeTimeUpdate();
if (bld0[0] != bld1[0]
if (MapHasNaturalLight(gMapHeader.mapType) &&
(bld0[0] != bld1[0]
|| bld0[1] != bld1[1]
|| bld0[2] != bld1[2])
|| bld0[2] != bld1[2]))
{
ApplyWeatherColorMapIfIdle(gWeatherPtr->colorMapIndex);
ApplyWeatherColorMapIfIdle(gWeatherPtr->colorMapIndex);
}
}
}