mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-05 22:09:59 +03:00
game: small fixes
This commit is contained in:
@@ -2517,6 +2517,8 @@ LINK_ENTITY_TO_CLASS( trigger_autosave, CTriggerSave );
|
||||
//-----------------------------------------------------------------------------
|
||||
void CTriggerSave::Spawn( void )
|
||||
{
|
||||
m_minHitPoints = 1;
|
||||
|
||||
if ( g_pGameRules->IsDeathmatch() )
|
||||
{
|
||||
UTIL_Remove( this );
|
||||
@@ -2534,7 +2536,7 @@ void CTriggerSave::Spawn( void )
|
||||
void CTriggerSave::Touch( CBaseEntity *pOther )
|
||||
{
|
||||
// Only save on clients
|
||||
if ( !pOther->IsPlayer() )
|
||||
if ( !pOther->IsPlayer() || !pOther->IsAlive() )
|
||||
return;
|
||||
|
||||
if ( m_fDangerousTimer != 0.0f )
|
||||
|
||||
Reference in New Issue
Block a user