fixed rare bug where guy in spectate would prevent zombies from spawning

This commit is contained in:
jenz 2024-02-12 22:57:28 +01:00
parent 8ef96b89ab
commit 4a5c556e66

View File

@ -235,7 +235,8 @@ public void checkIfRestartNeeded()
int activePlayers = 0;
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;
}