mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-08 11:01:33 +00:00
Fix mp_forcerespawn bypass
► Fixed an issue where people could hold some keys and not spawn when force respawn was enabled.
This commit is contained in:
parent
a62efecf62
commit
1af5e06720
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