summaryrefslogtreecommitdiff
path: root/src/field_fadetransition.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2020-03-26 21:30:58 -0400
committerPikalaxALT <PikalaxALT@gmail.com>2020-03-26 21:30:58 -0400
commit71c003dcdbe5253ca79881adea3d0ce3c3597541 (patch)
tree1d18ec6a076277ce0a8c7b01c8d8472cbb023df9 /src/field_fadetransition.c
parent012f8ed12f2425a13602ec2cb3cb379d756b8bbd (diff)
through LoadSaveblockMapHeader
Diffstat (limited to 'src/field_fadetransition.c')
-rw-r--r--src/field_fadetransition.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/field_fadetransition.c b/src/field_fadetransition.c
index 03190c095..7ebf9cc30 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();
+ const struct MapHeader *header = GetDestinationWarpMapHeader();
if (header->regionMapSectionId != gMapHeader.regionMapSectionId && MapHasPreviewScreen(header->regionMapSectionId, MPS_TYPE_CAVE))
FadeScreen(FADE_TO_BLACK, 0);
else
@@ -113,7 +113,7 @@ void WarpFadeOutScreen(void)
static void sub_807DC70(void)
{
- switch (MapTransitionIsEnter(GetCurrentMapType(), warp1_get_mapheader()->mapType))
+ switch (MapTransitionIsEnter(GetCurrentMapType(), GetDestinationWarpMapHeader()->mapType))
{
case FALSE:
FadeScreen(FADE_TO_BLACK, 3);