Skip to content

Commit

Permalink
fix logical inconsistency with reverting firemodes
Browse files Browse the repository at this point in the history
  • Loading branch information
VileBeggar committed Feb 6, 2024
1 parent 215410d commit 6ad8664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/projectiles/gun_attachables.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3341,7 +3341,7 @@ Defined in conflicts.dm of the #defines folder.
burst_scatter_mod = 0
delay_mod = FIRE_DELAY_TIER_12
//if we are no longer on full auto, don't bother switching back to the old firemode
if(full_auto_switch && gun.gun_firemode == GUN_FIREMODE_AUTOMATIC)
if(full_auto_switch && gun.gun_firemode == GUN_FIREMODE_AUTOMATIC && gun.gun_firemode != old_firemode)
gun.do_toggle_firemode(user, null, old_firemode)

gun.recalculate_attachment_bonuses()
Expand Down Expand Up @@ -3397,8 +3397,8 @@ Defined in conflicts.dm of the #defines folder.
if(heavy_bipod)
user.anchored = TRUE

old_firemode = gun.gun_firemode
if(full_auto_switch && gun.gun_firemode != GUN_FIREMODE_AUTOMATIC)
old_firemode = gun.gun_firemode
gun.do_toggle_firemode(user, null, GUN_FIREMODE_AUTOMATIC)

else
Expand Down

0 comments on commit 6ad8664

Please sign in to comment.