Skip to content

Commit 943d0c7

Browse files
committed
fix bug with mp_spectators_restricted when balance is disabled
1 parent ae5cb37 commit 943d0c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/game/server/tf/tf_player.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7058,7 +7058,7 @@ void CTFPlayer::HandleCommand_JoinTeam( const char *pTeamName )
70587058
}
70597059

70607060
// Deny spectator access if it would unbalance the teams
7061-
if ( ( mp_spectators_restricted.GetBool() || tf_mm_trusted.GetBool() ) && TFGameRules() && !TFGameRules()->IsMannVsMachineMode() )
7061+
if ( ( mp_spectators_restricted.GetBool() || tf_mm_trusted.GetBool() ) && TFGameRules() && !TFGameRules()->IsMannVsMachineMode() && mp_teams_unbalance_limit.GetInt() > 0 )
70627062
{
70637063
if ( GetTeamNumber() == TF_TEAM_RED || GetTeamNumber() == TF_TEAM_BLUE )
70647064
{

0 commit comments

Comments
 (0)