GTR_NOTITLECARD

This commit is contained in:
Jaime Passos 2019-12-18 18:39:59 -03:00
parent 61cad09505
commit ec8682b2af
3 changed files with 3 additions and 1 deletions

View File

@ -8876,6 +8876,7 @@ static const char *const GAMETYPERULE_LIST[] = {
"SPAWNENEMIES",
"ALLOWEXIT",
"ROUNDENDMESSAGE",
"NOTITLECARD",
NULL
};

View File

@ -415,6 +415,7 @@ enum GameTypeRules
GTR_SPAWNENEMIES = 1<<18, // Spawn enemies
GTR_ALLOWEXIT = 1<<19, // Allow exit sectors
GTR_ROUNDENDMESSAGE = 1<<20, // Prints "The round has ended." into the console
GTR_NOTITLECARD = 1<<21, // Don't show the title card
};
// String names for gametypes

View File

@ -1809,7 +1809,7 @@ void G_StartTitleCard(void)
// The title card has been disabled for this map.
// Oh well.
if (mapheaderinfo[gamemap-1]->levelflags & LF_NOTITLECARD)
if ((mapheaderinfo[gamemap-1]->levelflags & LF_NOTITLECARD) || (gametyperules & GTR_NOTITLECARD))
{
WipeStageTitle = false;
return;