Skip to content

Commit cfee8f8

Browse files
committed
fix getting stuck in instant respawn
1 parent 2ab2e0a commit cfee8f8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/game/server/tf/tf_player.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3647,7 +3647,11 @@ bool CTFPlayer::IsReadyToSpawn( void )
36473647

36483648
if ( TFGameRules()->GetRespawnTimeMode() > 2 && !m_bAbortFreezeCam && GetObserverMode() <= OBS_MODE_FREEZECAM && GetObserverTarget() && GetObserverTarget() != this )
36493649
{
3650-
return false;
3650+
// only if we're not past the max freeze, block the spawn
3651+
if ( gpGlobals->curtime < GetDeathTime() + 0.51f + spec_freeze_time.GetFloat() )
3652+
{
3653+
return false;
3654+
}
36513655
}
36523656

36533657
// Map-makers can force players to have custom respawn times

0 commit comments

Comments
 (0)