summaryrefslogtreecommitdiff
path: root/src/task.c
diff options
context:
space:
mode:
authorN <71219152+PokeCodec@users.noreply.github.com>2021-01-16 21:50:59 -0500
committerN <71219152+PokeCodec@users.noreply.github.com>2021-01-16 21:50:59 -0500
commit72e8683975c870707cd45312e727c4b56fa1a939 (patch)
treed99da37ea99442b01b86fc6576e9b29bfc6df6d0 /src/task.c
parente7436ab4c86ebf4ba7266dbfc88a49a29d1caa2c (diff)
FIxed the comments
Diffstat (limited to 'src/task.c')
-rw-r--r--src/task.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/task.c b/src/task.c
index 512e838b7..1736d9abe 100644
--- a/src/task.c
+++ b/src/task.c
@@ -138,7 +138,7 @@ void TaskDummy(u8 taskId)
void SetTaskFuncWithFollowupFunc(u8 taskId, TaskFunc func, TaskFunc followupFunc)
{
- u8 taskNum = NUM_TASK_DATA - 2; // Should be const
+ u8 taskNum = NUM_TASK_DATA - 2; // Should be const.
gTasks[taskId].data[taskNum] = (s16)((u32)followupFunc);
gTasks[taskId].data[taskNum + 1] = (s16)((u32)followupFunc >> 16);
@@ -147,7 +147,7 @@ void SetTaskFuncWithFollowupFunc(u8 taskId, TaskFunc func, TaskFunc followupFunc
void SwitchTaskToFollowupFunc(u8 taskId)
{
- u8 taskNum = NUM_TASK_DATA - 2; // Should be const
+ u8 taskNum = NUM_TASK_DATA - 2; // Should be const.
gTasks[taskId].func = (TaskFunc)((u16)(gTasks[taskId].data[taskNum]) | (gTasks[taskId].data[taskNum + 1] << 16));
}
@@ -171,7 +171,7 @@ u8 FindTaskIdByFunc(TaskFunc func)
if (gTasks[i].isActive == TRUE && gTasks[i].func == func)
return (u8)i;
- return 0xFF; // No task found
+ return TAIL_SENTINEL; // No task found.
}
u8 GetTaskCount(void)