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 e83ecdf commit a85998aCopy full SHA for a85998a
src/game/server/tf/tf_player.cpp
@@ -7343,7 +7343,7 @@ bool CTFPlayer::ClientCommand( const CCommand &args )
7343
if ( FStrEq( pcmd, "jointeam" ) )
7344
{
7345
// don't let them spam the server with changes
7346
- if ( GetNextChangeTeamTime() > gpGlobals->curtime )
+ if ( GetNextChangeTeamTime() > gpGlobals->curtime && GetTeamNumber() != TEAM_UNASSIGNED )
7347
return true;
7348
7349
SetNextChangeTeamTime( gpGlobals->curtime + 2.0f ); // limit to one change every 2 secs
0 commit comments