Skip to content

Commit

Permalink
Don't turn off the flashlight when removing weapons with player_weapo…
Browse files Browse the repository at this point in the history
…nstrip
  • Loading branch information
FreeSlave committed Dec 28, 2024
1 parent 881852d commit 81572f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,8 @@ void CBasePlayer::RemoveAllItems( BOOL removeSuit )
pev->weapons &= ~WEAPON_ALLWEAPONS;

// Turn off flashlight
ClearBits( pev->effects, EF_DIMLIGHT );
if (removeSuit)
ClearBits( pev->effects, EF_DIMLIGHT );

for( i = 0; i < MAX_AMMO_SLOTS; i++ )
m_rgAmmo[i] = 0;
Expand Down

0 comments on commit 81572f4

Please sign in to comment.