Skip to content

Commit

Permalink
Cleanup of sub_8031138
Browse files Browse the repository at this point in the history
  • Loading branch information
JaceCear committed Jun 5, 2024
1 parent df6abf5 commit 1d128cf
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/game/stage/results.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,12 +550,10 @@ void sub_80310F0(void)

void sub_8031138(u16 p0)
{
// u16 p0 = p0;
StageResults *outro = TASK_DATA(gCurTask);
u32 counter = outro->counter;
u32 i;
Sprite *s;
s32 xPos;
s32 r4;

if (counter < 24) {
Expand All @@ -572,15 +570,13 @@ void sub_8031138(u16 p0)
DisplaySprite(s);
}
} else {
// _08031198
s = &outro->s7;

for (i = 0; i < 8; i++) {
s->x = -p0 + i * 32;
DisplaySprite(s);
}
}
// _080311B2

if (counter > 28) {
u32 numDisplayedBonuses = (ACT_INDEX(gCurrentLevel) == ACT_BOSS) ? 2 : 3;
Expand All @@ -591,7 +587,6 @@ void sub_8031138(u16 p0)
DisplaySprite(s);
}
}
// _080311F4

if (counter >= 39) {

Expand All @@ -613,7 +608,6 @@ void sub_8031138(u16 p0)
OUTRO_TIME_BONUS_Y_POS, 0);
}
}
// _0803124C

if (counter >= 49) {
s = &outro->sprScores[1];
Expand All @@ -634,7 +628,6 @@ void sub_8031138(u16 p0)
OUTRO_RING_BONUS_Y_POS, 0);
}
}
// _0803129C

if ((ACT_INDEX(gCurrentLevel) != ACT_BOSS)
&& (gCurrentLevel < LEVEL_INDEX(ZONE_FINAL, ACT_XX_FINAL_ZONE))
Expand Down

0 comments on commit 1d128cf

Please sign in to comment.