From 400ce5ca7cb01f0a9f04ab4d65a117fef00377b5 Mon Sep 17 00:00:00 2001 From: Mikko Tiusanen Date: Sun, 6 Jul 2014 18:16:51 +0300 Subject: Fixed the player count checking for allowing spawn with g_teamForceBalance = 2. --- src/game/g_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game') diff --git a/src/game/g_main.c b/src/game/g_main.c index 4da0808..e60e134 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -1052,7 +1052,7 @@ void G_SpawnClients( team_t team ) if( g_teamForceBalance.integer == 2 && !level.humanTeamLocked && !level.alienTeamLocked && - level.numAlienClients-level.numHumanClients > 1 ) + level.numLiveAlienClients-level.numHumanClients > 0 ) numSpawns = -1; } else if( team == TEAM_HUMANS ) @@ -1062,7 +1062,7 @@ void G_SpawnClients( team_t team ) if( g_teamForceBalance.integer == 2 && !level.humanTeamLocked && !level.alienTeamLocked && - level.numHumanClients-level.numAlienClients > 1 ) + level.numLiveHumanClients-level.numAlienClients > 0 ) numSpawns = -1; } -- cgit