mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Track duplicates
This commit is contained in:
parent
25417e96eb
commit
fcd9f5cfaf
1 changed files with 8 additions and 0 deletions
|
|
@ -9537,6 +9537,8 @@ void Command_Platinums(void)
|
||||||
|
|
||||||
tic_t platinumtime = UINT32_MAX;
|
tic_t platinumtime = UINT32_MAX;
|
||||||
|
|
||||||
|
std::unordered_map<std::string, int> names;
|
||||||
|
|
||||||
for (auto &stafftime : stafftimes)
|
for (auto &stafftime : stafftimes)
|
||||||
{
|
{
|
||||||
if (stafftime == stafftimes[0])
|
if (stafftime == stafftimes[0])
|
||||||
|
|
@ -9550,6 +9552,12 @@ void Command_Platinums(void)
|
||||||
CONS_Printf(", %s (+%d:%02d)", stafftime.second.c_str(),
|
CONS_Printf(", %s (+%d:%02d)", stafftime.second.c_str(),
|
||||||
G_TicsToSeconds(stafftime.first - platinumtime), G_TicsToCentiseconds(stafftime.first - platinumtime));
|
G_TicsToSeconds(stafftime.first - platinumtime), G_TicsToCentiseconds(stafftime.first - platinumtime));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
names[stafftime.second]++;
|
||||||
|
if (names[stafftime.second] > 1)
|
||||||
|
{
|
||||||
|
CONS_Printf(" (DUPLICATE)");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CONS_Printf("\n");
|
CONS_Printf("\n");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue