Browse Source

Revert unneeded changes.

bshift
Night Owl 7 years ago
parent
commit
8b876213b9
  1. 5
      dlls/items.cpp
  2. 1
      dlls/triggers.cpp

5
dlls/items.cpp

@ -283,6 +283,11 @@ class CItemBattery : public CItem @@ -283,6 +283,11 @@ class CItemBattery : public CItem
}
BOOL MyTouch( CBasePlayer *pPlayer )
{
if( pPlayer->pev->deadflag != DEAD_NO )
{
return FALSE;
}
if( ( pPlayer->pev->armorvalue < MAX_NORMAL_BATTERY ) &&
( pPlayer->pev->weapons & ( 1 << WEAPON_SUIT ) ) )
{

1
dlls/triggers.cpp

@ -1190,6 +1190,7 @@ void CBaseTrigger::CounterUse( CBaseEntity *pActivator, CBaseEntity *pCaller, US @@ -1190,6 +1190,7 @@ void CBaseTrigger::CounterUse( CBaseEntity *pActivator, CBaseEntity *pCaller, US
return;
BOOL fTellActivator =
( m_hActivator != 0 ) &&
FClassnameIs( m_hActivator->pev, "player" ) &&
!FBitSet( pev->spawnflags, SPAWNFLAG_NOMESSAGE );
if( m_cTriggersLeft != 0 )

Loading…
Cancel
Save