Skip to content

Commit

Permalink
allow auto reload to start while fire delay is active (manual reload …
Browse files Browse the repository at this point in the history
…can already do this) and while the primary fire button is held. fixes #801.
  • Loading branch information
BenLubar committed Oct 9, 2024
1 parent c7ee37e commit 9874d4f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/game/shared/swarm/asw_weapon_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ void CASW_Weapon::ItemPostFrame( void )
// -----------------------
// No buttons down
// -----------------------
if ( !( bAttack1 || bAttack2 || bReload ) )
if ( !( /*bAttack1 ||*/ bAttack2 || bReload ) )
{
// no fire buttons down or reloading
if ( !ReloadOrSwitchWeapons() && ( m_bInReload == false ) )
Expand Down Expand Up @@ -609,8 +609,6 @@ bool CASW_Weapon::ReloadOrSwitchWeapons( void )
( m_iClip1 == 0 ) &&
( GetWeaponFlags() & ITEM_FLAG_NOAUTORELOAD ) == false &&
bAutoReload &&
m_flNextPrimaryAttack < gpGlobals->curtime &&
( ( m_flNextSecondaryAttack < gpGlobals->curtime ) || !HasSecondaryAttack() ) &&
!m_bInReload )
{
// if we're successfully reloading, we're done
Expand Down

0 comments on commit 9874d4f

Please sign in to comment.