From 3bd46b5b7aa4ee0add0f2d1e145e91c9087befb3 Mon Sep 17 00:00:00 2001 From: Ariel Antonitis Date: Sun, 18 Apr 2021 01:40:14 -0400 Subject: [PATCH] Fixed bug in MapHasNaturalLight for ocean routes. --- src/overworld.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/overworld.c b/src/overworld.c index cd1a1df966..0ac310e653 100644 --- a/src/overworld.c +++ b/src/overworld.c @@ -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) {