mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-09 11:31:23 +00:00
Merge 1af5e06720
into ceb6d4d783
This commit is contained in:
commit
d5eb459a0e
1 changed files with 4 additions and 1 deletions
|
@ -2152,8 +2152,11 @@ void CBasePlayer::PlayerDeathThink(void)
|
|||
// wait for all buttons released
|
||||
if (m_lifeState == LIFE_DEAD)
|
||||
{
|
||||
if (fAnyButtonDown)
|
||||
if ( fAnyButtonDown && ( gpGlobals->curtime > ( m_flDeathTime + 5 ) ) )
|
||||
{
|
||||
respawn( this, !IsObserver() );// don't copy a corpse if we're in deathcam.
|
||||
return;
|
||||
}
|
||||
|
||||
if ( g_pGameRules->FPlayerCanRespawn( this ) )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue