mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 11:37:40 +01:00
formatting
This commit is contained in:
parent
652600ba5d
commit
e14f46dd65
19
src/task.c
19
src/task.c
@ -296,18 +296,17 @@ u8 GetTaskCount()
|
||||
|
||||
void SetWordTaskArg(u8 taskId, u8 dataElem, u32 value)
|
||||
{
|
||||
if (dataElem <= 0xE)
|
||||
{
|
||||
gTasks[taskId].data[dataElem] = value;
|
||||
gTasks[taskId].data[dataElem + 1] = value >> 16;
|
||||
}
|
||||
return;
|
||||
if (dataElem <= 14)
|
||||
{
|
||||
gTasks[taskId].data[dataElem] = value;
|
||||
gTasks[taskId].data[dataElem + 1] = value >> 16;
|
||||
}
|
||||
}
|
||||
|
||||
u32 GetWordTaskArg(u8 taskId, u8 dataElem)
|
||||
{
|
||||
if (dataElem <= 0xE)
|
||||
return (u16)gTasks[taskId].data[dataElem] | (gTasks[taskId].data[dataElem + 1] << 16);
|
||||
else
|
||||
return 0;
|
||||
if (dataElem <= 0xE)
|
||||
return (u16)gTasks[taskId].data[dataElem] | (gTasks[taskId].data[dataElem + 1] << 16);
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user