Revert unneeded changes.

This commit is contained in:
Night Owl 2018-01-15 22:40:50 +05:00
parent 6909ca4f29
commit 8b876213b9
2 changed files with 6 additions and 0 deletions

View File

@ -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 ) ) )
{

View File

@ -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 )