Fix formatting
This commit is contained in:
parent
bfeb7fb32a
commit
762640664f
1 changed files with 33 additions and 31 deletions
|
@ -415,7 +415,8 @@ void sub_81C7170(u8 taskId)
|
||||||
while (!exitLoop)
|
while (!exitLoop)
|
||||||
{
|
{
|
||||||
u32 v1 =((u32 (*)(u32))func)(dataPtr[0]);
|
u32 v1 =((u32 (*)(u32))func)(dataPtr[0]);
|
||||||
switch (v1) {
|
switch (v1)
|
||||||
|
{
|
||||||
case 1:
|
case 1:
|
||||||
dataPtr[0] = dataPtr[0] + 1;
|
dataPtr[0] = dataPtr[0] + 1;
|
||||||
break;
|
break;
|
||||||
|
@ -467,9 +468,10 @@ void sub_81C71E4(u8 taskId)
|
||||||
void CB2_PokeNav(void)
|
void CB2_PokeNav(void)
|
||||||
{
|
{
|
||||||
gUnknown_0203CF40 = Alloc(sizeof(struct UnknownStruct_0203CF40));
|
gUnknown_0203CF40 = Alloc(sizeof(struct UnknownStruct_0203CF40));
|
||||||
if (gUnknown_0203CF40 == NULL) {
|
if (gUnknown_0203CF40 == NULL)
|
||||||
SetMainCallback2(CB2_ReturnToFieldWithOpenMenu);
|
SetMainCallback2(CB2_ReturnToFieldWithOpenMenu);
|
||||||
} else {
|
else
|
||||||
|
{
|
||||||
sub_81C7360(gUnknown_0203CF40);
|
sub_81C7360(gUnknown_0203CF40);
|
||||||
ResetTasks();
|
ResetTasks();
|
||||||
SetVBlankCallback(NULL);
|
SetVBlankCallback(NULL);
|
||||||
|
@ -899,8 +901,10 @@ u32 atk47_cmd47(s32 a0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 sub_81C791C(s32 a0) {
|
u32 sub_81C791C(s32 a0)
|
||||||
if (ChangeBgY(0, 384, 2) <= 0) {
|
{
|
||||||
|
if (ChangeBgY(0, 384, 2) <= 0)
|
||||||
|
{
|
||||||
ChangeBgY(0, 0, 0);
|
ChangeBgY(0, 0, 0);
|
||||||
return 4;
|
return 4;
|
||||||
}
|
}
|
||||||
|
@ -920,9 +924,7 @@ void sub_81C795C(const struct SpritePalette *palettes)
|
||||||
{
|
{
|
||||||
index = AllocSpritePalette(current->tag);
|
index = AllocSpritePalette(current->tag);
|
||||||
if (index == 0xFF)
|
if (index == 0xFF)
|
||||||
{
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
index = (index * 16) + 0x100;
|
index = (index * 16) + 0x100;
|
||||||
|
|
Loading…
Reference in a new issue