fixed rare bug where guy in spectate would prevent zombies from spawning
This commit is contained in:
parent
8ef96b89ab
commit
4a5c556e66
@ -235,7 +235,8 @@ public void checkIfRestartNeeded()
|
|||||||
int activePlayers = 0;
|
int activePlayers = 0;
|
||||||
for (int i = 1; i < MaxClients; i++)
|
for (int i = 1; i < MaxClients; i++)
|
||||||
{
|
{
|
||||||
if (!IsValidClient(i) || IsClientSourceTV(i))
|
//if a guy sits in spec it does not restart the round. needed IsPlayerAlive.
|
||||||
|
if (!IsValidClient(i) || IsClientSourceTV(i) || !IsPlayerAlive(i))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user