Clarified comments
Made comments clearer.
This commit is contained in:
parent
7134763b73
commit
b6c483394e
1 changed files with 1 additions and 1 deletions
|
@ -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 the followupFunc in two adjacent indexes.
|
gTasks[taskId].data[followupFuncIndex + 1] = (s16)((u32)followupFunc >> 16); // So we can store followupFunc as two half-words in the data array.
|
||||||
gTasks[taskId].func = func;
|
gTasks[taskId].func = func;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue