summaryrefslogtreecommitdiff
path: root/src/script_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/script_menu.c')
-rw-r--r--src/script_menu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/script_menu.c b/src/script_menu.c
index 425cdc251..f3317773a 100644
--- a/src/script_menu.c
+++ b/src/script_menu.c
@@ -279,7 +279,7 @@ bool8 ScriptMenu_MultichoiceGrid(u8 left, u8 top, u8 multichoiceId, bool8 ignore
gTasks[taskId].tWindowId = CreateWindowFromRect(left, top, columnCount * newWidth, rowCount * 2);
SetStandardWindowBorderStyle(gTasks[taskId].tWindowId, 0);
PrintMenuGridTable(gTasks[taskId].tWindowId, newWidth * 8, columnCount, rowCount, sMultichoiceLists[multichoiceId].list);
- sub_8199944(gTasks[taskId].tWindowId, newWidth * 8, columnCount, rowCount, 0);
+ InitMenuActionGrid(gTasks[taskId].tWindowId, newWidth * 8, columnCount, rowCount, 0);
CopyWindowToVram(gTasks[taskId].tWindowId, 3);
return TRUE;
}
@@ -580,7 +580,7 @@ bool8 ScriptMenu_ShowPokemonPic(u16 species, u8 x, u8 y)
u8 taskId;
u8 spriteId;
- if (FindTaskIdByFunc(Task_PokemonPicWindow) != 0xFF)
+ if (FindTaskIdByFunc(Task_PokemonPicWindow) != TASK_NONE)
{
return FALSE;
}
@@ -604,7 +604,7 @@ bool8 (*ScriptMenu_GetPicboxWaitFunc(void))(void)
{
u8 taskId = FindTaskIdByFunc(Task_PokemonPicWindow);
- if (taskId == 0xFF)
+ if (taskId == TASK_NONE)
return NULL;
gTasks[taskId].tState++;
return IsPicboxClosed;
@@ -612,7 +612,7 @@ bool8 (*ScriptMenu_GetPicboxWaitFunc(void))(void)
static bool8 IsPicboxClosed(void)
{
- if (FindTaskIdByFunc(Task_PokemonPicWindow) == 0xFF)
+ if (FindTaskIdByFunc(Task_PokemonPicWindow) == TASK_NONE)
return TRUE;
else
return FALSE;