Decompile all of battle_anim_utility_funcs
This commit is contained in:
@@ -193,19 +193,6 @@ EWRAM_DATA struct ContestWinner gUnknown_02039F3C = {0};
|
||||
|
||||
u32 gContestRngValue;
|
||||
|
||||
extern u16 gBattle_BG0_X;
|
||||
extern u16 gBattle_BG0_Y;
|
||||
extern u16 gBattle_BG1_X;
|
||||
extern s16 gBattle_BG1_Y;
|
||||
extern u16 gBattle_BG2_X;
|
||||
extern u16 gBattle_BG2_Y;
|
||||
extern u16 gBattle_BG3_X;
|
||||
extern u16 gBattle_BG3_Y;
|
||||
extern u16 gBattle_WIN0H;
|
||||
extern u16 gBattle_WIN0V;
|
||||
extern u16 gBattle_WIN1H;
|
||||
extern u16 gBattle_WIN1V;
|
||||
|
||||
extern const u16 gUnknown_08587C30[];
|
||||
extern const struct BgTemplate gUnknown_08587F34[4];
|
||||
extern const struct WindowTemplate gUnknown_08587F44[];
|
||||
@@ -638,7 +625,8 @@ void sub_80D8108(u8 taskId)
|
||||
gTasks[taskId].data[0]++;
|
||||
break;
|
||||
case 1:
|
||||
if ((gBattle_BG1_Y += 7) <= 160)
|
||||
(s16)gBattle_BG1_Y += 7;
|
||||
if ((s16)gBattle_BG1_Y <= 160)
|
||||
break;
|
||||
gTasks[taskId].data[0]++;
|
||||
break;
|
||||
@@ -1915,9 +1903,9 @@ void sub_80DA6B4(u8 taskId)
|
||||
void sub_80DA700(u8 taskId)
|
||||
{
|
||||
gBattle_BG1_Y -= 7;
|
||||
if (gBattle_BG1_Y < 0)
|
||||
if ((s16)gBattle_BG1_Y < 0)
|
||||
gBattle_BG1_Y = 0;
|
||||
if (*(u16 *)&gBattle_BG1_Y == 0) // Why cast?
|
||||
if (gBattle_BG1_Y == 0) // Why cast?
|
||||
{
|
||||
gTasks[taskId].func = sub_80DA740;
|
||||
gTasks[taskId].data[0] = 0;
|
||||
|
||||
Reference in New Issue
Block a user