Msgbox fixes

This makes so the msgbox doesn't move in the Y coordinate if the map popup was previously playing.
This commit is contained in:
Jaizu 2021-06-17 21:25:23 +02:00 committed by GitHub
parent f007befe51
commit 705e79b35a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -972,6 +972,7 @@ bool8 TryStartDexnavSearch(void)
return FALSE;
HideMapNamePopUpWindow();
ChangeBgY_ScreenOff(0, 0, 0);
taskId = CreateTask(Task_InitDexNavSearch, 0);
gTasks[taskId].tSpecies = val & MASK_SPECIES;
gTasks[taskId].tEnvironment = val >> 14;
@ -2619,6 +2620,7 @@ bool8 TryFindHiddenPokemon(void)
gTasks[taskId].tEnvironment = sDexNavSearchDataPtr->environment;
gTasks[taskId].tRevealed = FALSE;
HideMapNamePopUpWindow();
ChangeBgY_ScreenOff(0, 0, 0);
return FALSE; //we dont actually want to enable the script context or the game will freeze
}