mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Correcting the weird level names post-level
This commit is contained in:
parent
89f239b601
commit
f21d817053
1 changed files with 25 additions and 9 deletions
|
|
@ -1282,6 +1282,21 @@ void Y_StartIntermission(void)
|
||||||
Y_CalculateMatchWinners();
|
Y_CalculateMatchWinners();
|
||||||
|
|
||||||
// set up the levelstring
|
// set up the levelstring
|
||||||
|
if (mapheaderinfo[prevmap]->zonttl)
|
||||||
|
{
|
||||||
|
if (mapheaderinfo[prevmap]->actnum)
|
||||||
|
snprintf(data.match.levelstring,
|
||||||
|
sizeof data.match.levelstring,
|
||||||
|
"%.32s %.32s * %d *",
|
||||||
|
mapheaderinfo[prevmap]->lvlttl, mapheaderinfo[prevmap]->zonttl, mapheaderinfo[prevmap]->actnum);
|
||||||
|
else
|
||||||
|
snprintf(data.match.levelstring,
|
||||||
|
sizeof data.match.levelstring,
|
||||||
|
"* %.32s %.32s *",
|
||||||
|
mapheaderinfo[prevmap]->lvlttl, mapheaderinfo[prevmap]->zonttl);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
if (mapheaderinfo[prevmap]->actnum)
|
if (mapheaderinfo[prevmap]->actnum)
|
||||||
snprintf(data.match.levelstring,
|
snprintf(data.match.levelstring,
|
||||||
sizeof data.match.levelstring,
|
sizeof data.match.levelstring,
|
||||||
|
|
@ -1292,6 +1307,7 @@ void Y_StartIntermission(void)
|
||||||
sizeof data.match.levelstring,
|
sizeof data.match.levelstring,
|
||||||
"* %.32s *",
|
"* %.32s *",
|
||||||
mapheaderinfo[prevmap]->lvlttl);
|
mapheaderinfo[prevmap]->lvlttl);
|
||||||
|
}
|
||||||
|
|
||||||
data.match.levelstring[sizeof data.match.levelstring - 1] = '\0';
|
data.match.levelstring[sizeof data.match.levelstring - 1] = '\0';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue