Merge branch 'sort-staff-replays' into 'master'

Sort staff replays

Closes #1171

See merge request KartKrew/Kart!2137
This commit is contained in:
AJ Martinez 2024-03-19 12:30:48 +00:00
commit b7825dba88

View file

@ -9215,6 +9215,13 @@ UINT8 P_InitMapData(void)
mapheaderinfo[i]->ghostBrief[mapheaderinfo[i]->ghostCount] = briefghost;
mapheaderinfo[i]->ghostCount++;
}
// Sort shortest to longest for Time Attack menu
std::sort(
mapheaderinfo[i]->ghostBrief,
mapheaderinfo[i]->ghostBrief + mapheaderinfo[i]->ghostCount,
[](staffbrief_t* a, staffbrief_t* b) { return a->time < b->time; }
);
}
P_DeriveAutoMedalTimes(*mapheaderinfo[i]);