Turn off flashlight when player dead.

This commit is contained in:
Night Owl 2017-07-10 19:28:56 +05:00
parent c16e1ecfef
commit 4d7d6f2c37

View File

@ -820,6 +820,9 @@ void CBasePlayer::RemoveAllItems( BOOL removeSuit )
else
pev->weapons &= ~WEAPON_ALLWEAPONS;
// Turn off flashlight
ClearBits( pev->effects, EF_DIMLIGHT );
for( i = 0; i < MAX_AMMO_SLOTS; i++ )
m_rgAmmo[i] = 0;