Skip to content

Commit a85998a

Browse files
bakugoEricS-Valve
authored andcommitted
Fix players getting stuck in team unassigned on join
1 parent e83ecdf commit a85998a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/game/server/tf/tf_player.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7343,7 +7343,7 @@ bool CTFPlayer::ClientCommand( const CCommand &args )
73437343
if ( FStrEq( pcmd, "jointeam" ) )
73447344
{
73457345
// don't let them spam the server with changes
7346-
if ( GetNextChangeTeamTime() > gpGlobals->curtime )
7346+
if ( GetNextChangeTeamTime() > gpGlobals->curtime && GetTeamNumber() != TEAM_UNASSIGNED )
73477347
return true;
73487348

73497349
SetNextChangeTeamTime( gpGlobals->curtime + 2.0f ); // limit to one change every 2 secs

0 commit comments

Comments
 (0)