diff options
author | N <71219152+PokeCodec@users.noreply.github.com> | 2021-01-16 21:56:49 -0500 |
---|---|---|
committer | N <71219152+PokeCodec@users.noreply.github.com> | 2021-01-16 21:56:49 -0500 |
commit | d3259ebe2c7ae2f4d24ec7521b85f6b31aa64e79 (patch) | |
tree | 1f86cfdfa46566103bd207b88321da4d0d1f8584 /src/task.c | |
parent | 72e8683975c870707cd45312e727c4b56fa1a939 (diff) |
renamed taskNum to followupFuncDataIndex
Diffstat (limited to 'src/task.c')
-rw-r--r-- | src/task.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/task.c b/src/task.c index 1736d9abe..402defbeb 100644 --- a/src/task.c +++ b/src/task.c @@ -138,18 +138,18 @@ void TaskDummy(u8 taskId) void SetTaskFuncWithFollowupFunc(u8 taskId, TaskFunc func, TaskFunc followupFunc) { - u8 taskNum = NUM_TASK_DATA - 2; // Should be const. + u8 followupFuncDataIndex = NUM_TASK_DATA - 2; // Should be const. - gTasks[taskId].data[taskNum] = (s16)((u32)followupFunc); - gTasks[taskId].data[taskNum + 1] = (s16)((u32)followupFunc >> 16); + gTasks[taskId].data[followupFuncDataIndex] = (s16)((u32)followupFunc); + gTasks[taskId].data[followupFuncDataIndex + 1] = (s16)((u32)followupFunc >> 16); gTasks[taskId].func = func; } void SwitchTaskToFollowupFunc(u8 taskId) { - u8 taskNum = NUM_TASK_DATA - 2; // Should be const. + u8 followupFuncDataIndex = NUM_TASK_DATA - 2; // Should be const. - gTasks[taskId].func = (TaskFunc)((u16)(gTasks[taskId].data[taskNum]) | (gTasks[taskId].data[taskNum + 1] << 16)); + gTasks[taskId].func = (TaskFunc)((u16)(gTasks[taskId].data[followupFuncDataIndex]) | (gTasks[taskId].data[followupFuncDataIndex + 1] << 16)); } bool8 FuncIsActiveTask(TaskFunc func) |