Use MPS_TYPE_ defines in field_fadetransition and fldeff_flash
This commit is contained in:
@@ -94,7 +94,7 @@ void FadeInFromBlack(void)
|
|||||||
void WarpFadeOutScreen(void)
|
void WarpFadeOutScreen(void)
|
||||||
{
|
{
|
||||||
const struct MapHeader *header = warp1_get_mapheader();
|
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);
|
FadeScreen(1, 0);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -238,7 +238,7 @@ static bool8 TryDoMapTransition(void)
|
|||||||
u8 fromType = GetLastUsedWarpMapType();
|
u8 fromType = GetLastUsedWarpMapType();
|
||||||
u8 toType = GetCurrentMapType();
|
u8 toType = GetCurrentMapType();
|
||||||
u8 i = 0;
|
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);
|
RunMapPreviewScreen(gMapHeader.regionMapSectionId);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user