- check for deathmatch starts before forcing an unfriendly player to use them.

This commit is contained in:
Rachael Alexanderson 2018-02-20 05:35:18 -05:00
parent ff897997d6
commit 420602e154

View file

@ -4138,6 +4138,8 @@ void P_SetupLevel (const char *lumpname, int position)
// [SP] move unfriendly players around // [SP] move unfriendly players around
// horribly hacky - yes, this needs rewritten. // horribly hacky - yes, this needs rewritten.
if (level.deathmatchstarts.Size () > 0)
{
for (i = 0; i < MAXPLAYERS; ++i) for (i = 0; i < MAXPLAYERS; ++i)
{ {
if (playeringame[i] && players[i].mo != NULL) if (playeringame[i] && players[i].mo != NULL)
@ -4150,6 +4152,7 @@ void P_SetupLevel (const char *lumpname, int position)
} }
} }
} }
}
// Don't count monsters in end-of-level sectors if option is on // Don't count monsters in end-of-level sectors if option is on