Skip to content

Commit

Permalink
flush old_firemode just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
VileBeggar committed Feb 2, 2024
1 parent 34a5029 commit 979b409
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/modules/projectiles/gun_attachables.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3294,7 +3294,9 @@ Defined in conflicts.dm of the #defines folder.
/obj/item/attachable/bipod/Detach(mob/user, obj/item/weapon/gun/detaching_gub)
UnregisterSignal(detaching_gub, COMSIG_ITEM_DROPPED)

//clear out anything related to full auto switching
full_auto_switch = FALSE
old_firemode = null
for(var/item_action in detaching_gub.actions)
var/datum/action/item_action/bipod/toggle_full_auto_switch/target_action = item_action
if(target_action.target == src)
Expand Down

0 comments on commit 979b409

Please sign in to comment.