mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-17 02:01:15 +00:00
Fixing post-map name being weird
This commit is contained in:
parent
ba7580d8e2
commit
4387455d9c
3 changed files with 31 additions and 15 deletions
|
@ -143,16 +143,16 @@ extern FILE *logstream;
|
|||
#define DEVELOP // Disable this for release builds to remove excessive cheat commands and enable MD5 checking and stuff, all in one go. :3
|
||||
#ifdef DEVELOP
|
||||
#define VERSION 104 // Game version
|
||||
#define SUBVERSION 7 // more precise version number
|
||||
#define SUBVERSION 8 // more precise version number
|
||||
#define VERSIONSTRING "Development EXE"
|
||||
#define VERSIONSTRINGW "v1.4.7"
|
||||
#define VERSIONSTRINGW "v1.4.8"
|
||||
// most interface strings are ignored in development mode.
|
||||
// we use comprevision and compbranch instead.
|
||||
#else
|
||||
#define VERSION 104 // Game version
|
||||
#define SUBVERSION 7 // more precise version number
|
||||
#define VERSIONSTRING "DevEXE v1.4.7"
|
||||
#define VERSIONSTRINGW L"v1.4.7"
|
||||
#define SUBVERSION 8 // more precise version number
|
||||
#define VERSIONSTRING "DevEXE v1.4.8"
|
||||
#define VERSIONSTRINGW L"v1.4.8"
|
||||
// Hey! If you change this, add 1 to the MODVERSION below!
|
||||
// Otherwise we can't force updates!
|
||||
#endif
|
||||
|
|
|
@ -4632,7 +4632,7 @@ static void P_RunSpecialSectorCheck(player_t *player, sector_t *sector)
|
|||
// Check Section 1
|
||||
switch(GETSECSPECIAL(sector->special, 1))
|
||||
{
|
||||
case 2: // Damage (water)
|
||||
//case 2: // Damage (water)
|
||||
case 8: // Instant kill
|
||||
case 10: // Ring drainer that doesn't require floor touch
|
||||
case 12: // Space countdown
|
||||
|
|
|
@ -1290,16 +1290,32 @@ void Y_StartIntermission(void)
|
|||
Y_CalculateTournamentPoints();
|
||||
|
||||
// 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