Fixed bug in MapHasNaturalLight for ocean routes.

This commit is contained in:
Ariel Antonitis 2021-04-18 01:40:14 -04:00
parent e11d050423
commit 3bd46b5b7a

View file

@ -1481,7 +1481,8 @@ u8 UpdateTimeOfDay(void) {
}
static bool8 MapHasNaturalLight(u8 mapType) { // Weather a map type is naturally lit/outside
return mapType == MAP_TYPE_TOWN || mapType == MAP_TYPE_CITY || mapType == MAP_TYPE_ROUTE;
return mapType == MAP_TYPE_TOWN || mapType == MAP_TYPE_CITY || mapType == MAP_TYPE_ROUTE
|| mapType == MAP_TYPE_OCEAN_ROUTE;
}
static bool8 FadePalettesWithTime(void) {