mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Sort staff replays
- This lets the 1st replay on the "Replay Staff" selector actually be the fastest one
This commit is contained in:
parent
4d4f6f3bdd
commit
92bc1c2a17
1 changed files with 7 additions and 0 deletions
|
|
@ -9215,6 +9215,13 @@ UINT8 P_InitMapData(void)
|
||||||
mapheaderinfo[i]->ghostBrief[mapheaderinfo[i]->ghostCount] = briefghost;
|
mapheaderinfo[i]->ghostBrief[mapheaderinfo[i]->ghostCount] = briefghost;
|
||||||
mapheaderinfo[i]->ghostCount++;
|
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]);
|
P_DeriveAutoMedalTimes(*mapheaderinfo[i]);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue