summaryrefslogtreecommitdiff
path: root/src/subtask.c
diff options
context:
space:
mode:
authoroctorock <79596758+octorock@users.noreply.github.com>2022-12-11 12:07:48 +0100
committeroctorock <79596758+octorock@users.noreply.github.com>2022-12-11 12:07:48 +0100
commit1d741c182dec03c6c7a6ea337f351eedf7d6eb65 (patch)
tree7a1fc484cc98a123a562ed5bb2e03e85b6f28e95 /src/subtask.c
parent017eb5a65efe06ab338f7d6a3bdd1188fcca6c3e (diff)
Extract dungeon maps
Diffstat (limited to 'src/subtask.c')
-rw-r--r--src/subtask.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/subtask.c b/src/subtask.c
index 054d0c05..7c8d5385 100644
--- a/src/subtask.c
+++ b/src/subtask.c
@@ -151,7 +151,7 @@ void MenuFadeIn(u32 param_1, u32 param_2) {
gUI.field_0x5 = param_2;
gUI.nextToLoad = 1; // Subtask_Init
}
- gUI.field_0x6 = 0;
+ gUI.loadGfxOnRestore = FALSE;
gUI.fadeType = -1;
gUI.fadeInTime = 0x20;
gMain.substate = GAMEMAIN_SUBTASK;
@@ -256,7 +256,7 @@ void Subtask_FadeOut(void) {
MemCopy(&gUnk_03001020, &gScreen, sizeof(Screen));
gArea.localFlagOffset = GetFlagBankOffset(gRoomControls.area);
gArea.pCurrentRoomInfo = GetCurrentRoomInfo();
- RestoreGameTask(gUI.field_0x6);
+ RestoreGameTask(gUI.loadGfxOnRestore);
sub_0801D000(gUI.unk_d != 0);
sub_080A74F4();
if (gUI.fadeType != 0xffff) {