We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae5cb37 commit 943d0c7Copy full SHA for 943d0c7
1 file changed
src/game/server/tf/tf_player.cpp
@@ -7058,7 +7058,7 @@ void CTFPlayer::HandleCommand_JoinTeam( const char *pTeamName )
7058
}
7059
7060
// Deny spectator access if it would unbalance the teams
7061
- if ( ( mp_spectators_restricted.GetBool() || tf_mm_trusted.GetBool() ) && TFGameRules() && !TFGameRules()->IsMannVsMachineMode() )
+ if ( ( mp_spectators_restricted.GetBool() || tf_mm_trusted.GetBool() ) && TFGameRules() && !TFGameRules()->IsMannVsMachineMode() && mp_teams_unbalance_limit.GetInt() > 0 )
7062
{
7063
if ( GetTeamNumber() == TF_TEAM_RED || GetTeamNumber() == TF_TEAM_BLUE )
7064
0 commit comments