Don't warn about missing CTF starts if the gametype doesn't have team flags.

This commit is contained in:
Jaime Passos 2019-12-24 16:12:05 -03:00
parent b740daf5bf
commit 5b4d587b1a
1 changed files with 1 additions and 1 deletions

View File

@ -2720,7 +2720,7 @@ mapthing_t *G_FindCTFStart(INT32 playernum)
if (!numredctfstarts && !numbluectfstarts) //why even bother, eh?
{
if (playernum == consoleplayer || (splitscreen && playernum == secondarydisplayplayer))
if ((gametyperules & GTR_TEAMFLAGS) && (playernum == consoleplayer || (splitscreen && playernum == secondarydisplayplayer)))
CONS_Alert(CONS_WARNING, M_GetText("No CTF starts in this map!\n"));
return NULL;
}