Skip to content

Commit

Permalink
Auto-ready spectators (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
Drarig29 authored Dec 26, 2020
1 parent 4d7a527 commit 013519d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripting/get5/readysystem.sp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ public bool IsTeamReady(MatchTeam team) {
int playerCount = GetTeamPlayerCount(team);
int readyCount = GetTeamReadyCount(team);

if (team == MatchTeam_TeamSpec && minReady == 0) {
return true;
}

if (playerCount == readyCount && playerCount >= minPlayers) {
return true;
}
Expand Down

0 comments on commit 013519d

Please sign in to comment.