fixed rare bug where guy in spectate would prevent zombies from spawning
This commit is contained in:
parent
7b3282015b
commit
5c4f8c1ee5
@ -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