From 705e79b35a91eb910ebbe9fab002541ec4265695 Mon Sep 17 00:00:00 2001 From: Jaizu Date: Thu, 17 Jun 2021 21:25:23 +0200 Subject: [PATCH] Msgbox fixes This makes so the msgbox doesn't move in the Y coordinate if the map popup was previously playing. --- src/dexnav.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dexnav.c b/src/dexnav.c index 4300b85563..e03b86d11d 100644 --- a/src/dexnav.c +++ b/src/dexnav.c @@ -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 }