Replaced hardcoded numbers in DexNav with variables (#6241)

This commit is contained in:
Frank DeBlasio 2025-02-12 07:44:45 -05:00 committed by GitHub
parent 3507862164
commit 0f0c8325c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 165 additions and 165 deletions

File diff suppressed because it is too large Load Diff

View File

@ -329,13 +329,13 @@ static void AddStartMenuAction(u8 action)
}
static void BuildNormalStartMenu(void)
{
{
if (FlagGet(FLAG_SYS_POKEDEX_GET) == TRUE)
AddStartMenuAction(MENU_ACTION_POKEDEX);
if (DN_FLAG_DEXNAV_GET != 0 && FlagGet(DN_FLAG_DEXNAV_GET))
AddStartMenuAction(MENU_ACTION_DEXNAV);
if (FlagGet(FLAG_SYS_POKEMON_GET) == TRUE)
AddStartMenuAction(MENU_ACTION_POKEMON);
@ -644,7 +644,7 @@ static bool8 HandleStartMenuInput(void)
if (sCurrentStartMenuActions[sStartMenuCursorPos] == MENU_ACTION_DEXNAV
&& MapHasNoEncounterData())
return FALSE;
gMenuCallback = sStartMenuItems[sCurrentStartMenuActions[sStartMenuCursorPos]].func.u8_void;
if (gMenuCallback != StartMenuSaveCallback