mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-13 23:23:43 +01:00
cleanup
This commit is contained in:
parent
ceac2d547c
commit
35c6e85e20
@ -380,21 +380,18 @@ static void AnimTask_AnimateGustTornadoPalette_Step(u8 taskId)
|
|||||||
{
|
{
|
||||||
u8 data2;
|
u8 data2;
|
||||||
u16 temp;
|
u16 temp;
|
||||||
int i, base;
|
|
||||||
|
|
||||||
if (gTasks[taskId].data[10]++ == gTasks[taskId].data[1])
|
if (gTasks[taskId].data[10]++ == gTasks[taskId].data[1])
|
||||||
{
|
{
|
||||||
|
int i, base;
|
||||||
gTasks[taskId].data[10] = 0;
|
gTasks[taskId].data[10] = 0;
|
||||||
data2 = gTasks[taskId].data[2];
|
data2 = gTasks[taskId].data[2];
|
||||||
temp = gPlttBufferFaded[16 * data2 + 0x108];
|
temp = gPlttBufferFaded[16 * data2 + 0x108];
|
||||||
i = 7;
|
i = 7;
|
||||||
base = data2 * 16;
|
base = data2 * 16;
|
||||||
|
|
||||||
do
|
for (; i > 0; --i)
|
||||||
{
|
|
||||||
gPlttBufferFaded[base + 0x101 + i] = gPlttBufferFaded[base + 0x100 + i];
|
gPlttBufferFaded[base + 0x101 + i] = gPlttBufferFaded[base + 0x100 + i];
|
||||||
i--;
|
|
||||||
} while (i > 0);
|
|
||||||
|
|
||||||
gPlttBufferFaded[base + 0x101] = temp;
|
gPlttBufferFaded[base + 0x101] = temp;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user