allow CTF spawns in GTR_TEAMS gametype rule

This commit is contained in:
Jaime Passos 2019-12-19 02:17:03 -03:00
parent 0accadf02f
commit 019e52a4f4

View file

@ -2574,7 +2574,7 @@ void G_SpawnPlayer(INT32 playernum, boolean starpost)
// -- CTF --
// Order: CTF->DM->Coop
if ((gametyperules & GTR_TEAMFLAGS) && players[playernum].ctfteam)
if ((gametyperules & (GTR_TEAMFLAGS|GTR_TEAMS)) && players[playernum].ctfteam)
{
if (!(spawnpoint = G_FindCTFStart(playernum)) // find a CTF start
&& !(spawnpoint = G_FindMatchStart(playernum))) // find a DM start