summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorN <71219152+PokeCodec@users.noreply.github.com>2021-01-17 12:44:08 -0500
committerGitHub <noreply@github.com>2021-01-17 12:44:08 -0500
commit3b80f3caf1567659830b8685f550dc4ed27da893 (patch)
treef1a2d5cad2c4bc2b88424a7106d4af3df948b5de
parentd3259ebe2c7ae2f4d24ec7521b85f6b31aa64e79 (diff)
Make variable name shorter
-rw-r--r--src/task.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/task.c b/src/task.c
index 402defbeb..20ce56c38 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 followupFuncDataIndex = NUM_TASK_DATA - 2; // Should be const.
+ u8 followupFuncIndex = NUM_TASK_DATA - 2; // Should be const.
- gTasks[taskId].data[followupFuncDataIndex] = (s16)((u32)followupFunc);
- gTasks[taskId].data[followupFuncDataIndex + 1] = (s16)((u32)followupFunc >> 16);
+ gTasks[taskId].data[followupFuncIndex] = (s16)((u32)followupFunc);
+ gTasks[taskId].data[followupFuncIndex + 1] = (s16)((u32)followupFunc >> 16);
gTasks[taskId].func = func;
}
void SwitchTaskToFollowupFunc(u8 taskId)
{
- u8 followupFuncDataIndex = NUM_TASK_DATA - 2; // Should be const.
+ u8 followupFuncIndex = NUM_TASK_DATA - 2; // Should be const.
- gTasks[taskId].func = (TaskFunc)((u16)(gTasks[taskId].data[followupFuncDataIndex]) | (gTasks[taskId].data[followupFuncDataIndex + 1] << 16));
+ gTasks[taskId].func = (TaskFunc)((u16)(gTasks[taskId].data[followupFuncIndex]) | (gTasks[taskId].data[followupFuncIndex + 1] << 16));
}
bool8 FuncIsActiveTask(TaskFunc func)