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 7b3282015b
commit 5c4f8c1ee5

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;
}