Fix players getting stuck in team unassigned on join
This commit is contained in:
parent
e83ecdfa3c
commit
a85998aec5
|
|
@ -7343,7 +7343,7 @@ bool CTFPlayer::ClientCommand( const CCommand &args )
|
|||
if ( FStrEq( pcmd, "jointeam" ) )
|
||||
{
|
||||
// don't let them spam the server with changes
|
||||
if ( GetNextChangeTeamTime() > gpGlobals->curtime )
|
||||
if ( GetNextChangeTeamTime() > gpGlobals->curtime && GetTeamNumber() != TEAM_UNASSIGNED )
|
||||
return true;
|
||||
|
||||
SetNextChangeTeamTime( gpGlobals->curtime + 2.0f ); // limit to one change every 2 secs
|
||||
|
|
|
|||
Loading…
Reference in New Issue