summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2020-03-09 09:32:17 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2020-03-09 09:32:17 -0400
commit8955f1fa5fd8ead93efb18bb91f066a6ee1aacbf (patch)
tree85a62cf0a35fae7956baad03f494192b0e9ba776 /src
parent1a8023c46582c2742658ec5c75619d74f33fc3d1 (diff)
Use MPS_TYPE_ defines in field_fadetransition and fldeff_flash
Diffstat (limited to 'src')
-rw-r--r--src/field_fadetransition.c2
-rw-r--r--src/fldeff_flash.c2
2 files changed, 2 insertions, 2 deletions
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;