summaryrefslogtreecommitdiff
path: root/src/game/g_main.c
diff options
context:
space:
mode:
authorMikko Tiusanen <ams@daug.net>2014-07-06 18:16:51 +0300
committerMikko Tiusanen <ams@daug.net>2014-07-06 18:16:51 +0300
commit400ce5ca7cb01f0a9f04ab4d65a117fef00377b5 (patch)
treee3225bdbb64e3dba76d58f225c7c9d0b7110776f /src/game/g_main.c
parent0afc9cdcc596eb0ad9b6630b95b2e55df7337030 (diff)
Fixed the player count checking for allowing spawn with g_teamForceBalance = 2.
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r--src/game/g_main.c4
1 files changed, 2 insertions, 2 deletions
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;
}