From f039ad9857f06eac739d496ee9b9f43b1d0a9673 Mon Sep 17 00:00:00 2001 From: Ben Lubar Date: Mon, 14 Oct 2024 20:10:43 -0500 Subject: [PATCH] fix mining laser deactivating while fire button is held. --- src/game/shared/swarm/asw_weapon_shared.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/shared/swarm/asw_weapon_shared.cpp b/src/game/shared/swarm/asw_weapon_shared.cpp index b06db4833..230915aa0 100644 --- a/src/game/shared/swarm/asw_weapon_shared.cpp +++ b/src/game/shared/swarm/asw_weapon_shared.cpp @@ -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(); }