mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-17 23:21:05 +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,16 +1282,32 @@ void Y_StartIntermission(void)
|
|||
Y_CalculateMatchWinners();
|
||||
|
||||
// set up the levelstring
|
||||
if (mapheaderinfo[prevmap]->actnum)
|
||||
snprintf(data.match.levelstring,
|
||||
sizeof data.match.levelstring,
|
||||
"%.32s * %d *",
|
||||
mapheaderinfo[prevmap]->lvlttl, mapheaderinfo[prevmap]->actnum);
|
||||
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
|
||||
snprintf(data.match.levelstring,
|
||||
sizeof data.match.levelstring,
|
||||
"* %.32s *",
|
||||
mapheaderinfo[prevmap]->lvlttl);
|
||||
{
|
||||
if (mapheaderinfo[prevmap]->actnum)
|
||||
snprintf(data.match.levelstring,
|
||||
sizeof data.match.levelstring,
|
||||
"%.32s * %d *",
|
||||
mapheaderinfo[prevmap]->lvlttl, mapheaderinfo[prevmap]->actnum);
|
||||
else
|
||||
snprintf(data.match.levelstring,
|
||||
sizeof data.match.levelstring,
|
||||
"* %.32s *",
|
||||
mapheaderinfo[prevmap]->lvlttl);
|
||||
}
|
||||
|
||||
data.match.levelstring[sizeof data.match.levelstring - 1] = '\0';
|
||||
|
||||
|
|
Loading…
Reference in a new issue