From 8955f1fa5fd8ead93efb18bb91f066a6ee1aacbf Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Mon, 9 Mar 2020 09:32:17 -0400 Subject: Use MPS_TYPE_ defines in field_fadetransition and fldeff_flash --- src/field_fadetransition.c | 2 +- src/fldeff_flash.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/field_fadetransition.c b/src/field_fadetransition.c index eeca2e171..2724d52e9 100644 --- a/src/field_fadetransition.c +++ b/src/field_fadetransition.c @@ -94,7 +94,7 @@ void FadeInFromBlack(void) void WarpFadeOutScreen(void) { const struct MapHeader *header = warp1_get_mapheader(); - if (header->regionMapSectionId != gMapHeader.regionMapSectionId && MapHasPreviewScreen(header->regionMapSectionId, FALSE)) + if (header->regionMapSectionId != gMapHeader.regionMapSectionId && MapHasPreviewScreen(header->regionMapSectionId, MPS_TYPE_CAVE)) FadeScreen(1, 0); else { diff --git a/src/fldeff_flash.c b/src/fldeff_flash.c index 2cd7445d1..58cb4c251 100644 --- a/src/fldeff_flash.c +++ b/src/fldeff_flash.c @@ -238,7 +238,7 @@ static bool8 TryDoMapTransition(void) u8 fromType = GetLastUsedWarpMapType(); u8 toType = GetCurrentMapType(); u8 i = 0; - if (GetLastUsedWarpMapSectionId() != gMapHeader.regionMapSectionId && MapHasPreviewScreen_HandleQLState2(gMapHeader.regionMapSectionId, FALSE) == TRUE) + if (GetLastUsedWarpMapSectionId() != gMapHeader.regionMapSectionId && MapHasPreviewScreen_HandleQLState2(gMapHeader.regionMapSectionId, MPS_TYPE_CAVE) == TRUE) { RunMapPreviewScreen(gMapHeader.regionMapSectionId); return TRUE; -- cgit v1.2.3