mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-12 22:26:43 +00:00
M_DrawStatistics: Fix "Hours/Minutes/Seconds" plurality if there's only 1
This commit is contained in:
parent
03b6f50ab8
commit
0b71b2f71f
1 changed files with 5 additions and 4 deletions
|
|
@ -5729,18 +5729,19 @@ void M_DrawStatistics(void)
|
|||
{
|
||||
if (besttime >= 24)
|
||||
{
|
||||
strcat(beststr, va("%u days, ", besttime/24));
|
||||
strcat(beststr, va("%u day%s, ", besttime/24, (besttime < 48 ? "" : "s")));
|
||||
besttime %= 24;
|
||||
}
|
||||
|
||||
strcat(beststr, va("%u hours, ", besttime));
|
||||
strcat(beststr, va("%u hour%s, ", besttime, (besttime == 1 ? "" : "s")));
|
||||
}
|
||||
besttime = G_TicsToMinutes(gamedata->totalplaytime, false);
|
||||
if (besttime)
|
||||
{
|
||||
strcat(beststr, va("%u minutes, ", besttime));
|
||||
strcat(beststr, va("%u minute%s, ", besttime, (besttime == 1 ? "" : "s")));
|
||||
}
|
||||
strcat(beststr, va("%i seconds", G_TicsToSeconds(gamedata->totalplaytime)));
|
||||
besttime = G_TicsToSeconds(gamedata->totalplaytime);
|
||||
strcat(beststr, va("%i second%s", besttime, (besttime == 1 ? "" : "s")));
|
||||
V_DrawRightAlignedThinString(BASEVIDWIDTH-20, 22, V_6WIDTHSPACE, beststr);
|
||||
beststr[0] = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue