formatting

This commit is contained in:
YamaArashi 2016-11-01 12:13:12 -07:00
parent 734ec8dd51
commit d708372ea9

View File

@ -296,18 +296,17 @@ u8 GetTaskCount()
void SetWordTaskArg(u8 taskId, u8 dataElem, u32 value) void SetWordTaskArg(u8 taskId, u8 dataElem, u32 value)
{ {
if (dataElem <= 0xE) if (dataElem <= 14)
{ {
gTasks[taskId].data[dataElem] = value; gTasks[taskId].data[dataElem] = value;
gTasks[taskId].data[dataElem + 1] = value >> 16; gTasks[taskId].data[dataElem + 1] = value >> 16;
} }
return;
} }
u32 GetWordTaskArg(u8 taskId, u8 dataElem) u32 GetWordTaskArg(u8 taskId, u8 dataElem)
{ {
if (dataElem <= 0xE) if (dataElem <= 0xE)
return (u16)gTasks[taskId].data[dataElem] | (gTasks[taskId].data[dataElem + 1] << 16); return (u16)gTasks[taskId].data[dataElem] | (gTasks[taskId].data[dataElem + 1] << 16);
else else
return 0; return 0;
} }