Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions src/game/server/tf/tf_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6925,19 +6925,6 @@ void CTFPlayer::HandleCommand_JoinClass( const char *pClassName, bool bAllowSpaw
}
#endif // _DEBUG || STAGING_ONLY

// joining the same class?
if ( iClass != TF_CLASS_RANDOM && iClass == GetDesiredPlayerClassIndex() )
{
// If we're dead, and we have instant spawn, respawn us immediately. Catches the case
// where a player misses respawn wave because they're at the class menu, and then changes
// their mind and reselects their current class.
if ( m_bAllowInstantSpawn && !IsAlive() )
{
ForceRespawn();
}
return;
}

if ( TFGameRules()->IsInArenaMode() && tf_arena_use_queue.GetBool() == true && GetTeamNumber() <= LAST_SHARED_TEAM )
{
TFGameRules()->AddPlayerToQueue( this );
Expand Down