Skip to content

Commit

Permalink
FUCK time i attack that shit as much as i can
Browse files Browse the repository at this point in the history
  • Loading branch information
MegAmi24 committed Jan 5, 2024
1 parent 64c4b17 commit b2c23cb
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions RSDKv4/NativeObjects/RecordsScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ void RecordsScreen_Main(void *objPtr)
InitStartingStage(STAGELIST_REGULAR, self->zoneID * timeAttack_ActCount + self->actID, 0);

self->state = RECORDSSCREEN_STATE_SHOWRESULTS;
self->flashTimer = 0.0;
self->taResultID = GetGlobalVariableID("timeAttack.result");
BackupNativeObjects();
CREATE_ENTITY(FadeScreen);
Expand Down Expand Up @@ -582,17 +583,19 @@ void RecordsScreen_Main(void *objPtr)
}
}

SetStringToFont8(self->rank1st, "1.", FONT_LABEL);
AddTimeStringToFont(self->rank1st, records[0], FONT_LABEL);
SetStringToFont8(self->rank2nd, "2.", FONT_LABEL);
AddTimeStringToFont(self->rank2nd, records[1], FONT_LABEL);
SetStringToFont8(self->rank3rd, "3.", FONT_LABEL);
AddTimeStringToFont(self->rank3rd, records[2], FONT_LABEL);
if (self->rank) {
SetStringToFont8(self->rank1st, "1.", FONT_LABEL);
AddTimeStringToFont(self->rank1st, records[0], FONT_LABEL);
SetStringToFont8(self->rank2nd, "2.", FONT_LABEL);
AddTimeStringToFont(self->rank2nd, records[1], FONT_LABEL);
SetStringToFont8(self->rank3rd, "3.", FONT_LABEL);
AddTimeStringToFont(self->rank3rd, records[2], FONT_LABEL);

self->timer = 0.0;
self->state = RECORDSSCREEN_STATE_EXITRESULTS;
PlaySfxByName("Event", false);
WriteSaveRAMData();
self->timer = 0.0;
self->state = RECORDSSCREEN_STATE_EXITRESULTS;
PlaySfxByName("Event", false);
WriteSaveRAMData();
}

int pos = 0;
for (int i = 0; i < timeAttack_ZoneCount; ++i) {
Expand Down

0 comments on commit b2c23cb

Please sign in to comment.