Clarified comment again
This commit is contained in:
parent
b6c483394e
commit
d720520de8
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ u8 CreateTask(TaskFunc func, u8 priority)
|
||||||
gTasks[i].func = func;
|
gTasks[i].func = func;
|
||||||
gTasks[i].priority = priority;
|
gTasks[i].priority = priority;
|
||||||
InsertTask(i);
|
InsertTask(i);
|
||||||
memset(gTasks[i].data, 0, sizeof(gTasks[i].data));
|
gTasks[i].data = { 0 };
|
||||||
gTasks[i].isActive = TRUE;
|
gTasks[i].isActive = TRUE;
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
@ -141,7 +141,7 @@ void SetTaskFuncWithFollowupFunc(u8 taskId, TaskFunc func, TaskFunc followupFunc
|
||||||
u8 followupFuncIndex = NUM_TASK_DATA - 2; // Should be const.
|
u8 followupFuncIndex = NUM_TASK_DATA - 2; // Should be const.
|
||||||
|
|
||||||
gTasks[taskId].data[followupFuncIndex] = (s16)((u32)followupFunc);
|
gTasks[taskId].data[followupFuncIndex] = (s16)((u32)followupFunc);
|
||||||
gTasks[taskId].data[followupFuncIndex + 1] = (s16)((u32)followupFunc >> 16); // So we can store followupFunc as two half-words in the data array.
|
gTasks[taskId].data[followupFuncIndex + 1] = (s16)((u32)followupFunc >> 16); // Store followupFunc as two half-words in the data array.
|
||||||
gTasks[taskId].func = func;
|
gTasks[taskId].func = func;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue