diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-02-28 10:27:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-28 10:27:50 -0500 |
commit | 3f5936239785c8dae923e1f5c4bb91492e67cb5a (patch) | |
tree | cb0c74dc4a2c09551e1b6699b7c71ed7dc7c85d7 /src/script_menu.c | |
parent | 763724a98046c81da15dd5a5877ad30adb8129ba (diff) | |
parent | ea748ff7f51a7c119658930f878d046cc8b83c51 (diff) |
Merge branch 'master' into doc-pokejump
Diffstat (limited to 'src/script_menu.c')
-rw-r--r-- | src/script_menu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script_menu.c b/src/script_menu.c index 425cdc251..51c37b5b6 100644 --- a/src/script_menu.c +++ b/src/script_menu.c @@ -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; |