Skip to content

Commit

Permalink
fix mining laser deactivating while fire button is held.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLubar committed Oct 15, 2024
1 parent 4d3d394 commit f039ad9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/shared/swarm/asw_weapon_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,10 @@ void CASW_Weapon::ItemPostFrame( void )
// -----------------------
// No buttons down
// -----------------------
if ( !( /*bAttack1 ||*/ bAttack2 || bReload ) )
if ( !bAttack2 && !bReload )
{
// no fire buttons down or reloading
if ( !ReloadOrSwitchWeapons() && ( m_bInReload == false ) )
if ( !ReloadOrSwitchWeapons() && !m_bInReload && !bAttack1 )
{
WeaponIdle();
}
Expand Down

0 comments on commit f039ad9

Please sign in to comment.