Skip to content

Commit

Permalink
always clears operator at end-of-fire
Browse files Browse the repository at this point in the history
  • Loading branch information
Doubleumc committed Nov 8, 2023
1 parent 6adca7b commit df3df8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/modules/vehicles/hardpoints/hardpoint.dm
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@
shots_fired = 0
set_target(null)
set_auto_firing(FALSE)
hp_operator = null

/// Set the target and take care of hard delete.
/obj/item/hardpoint/proc/set_target(atom/object)
Expand Down Expand Up @@ -582,7 +583,7 @@
if(fire_return == AUTOFIRE_CONTINUE)
reset_fire() //semiauto end-of-fire
display_ammo()
hp_operator = null
hp_operator = null
else
SEND_SIGNAL(src, COMSIG_GUN_FIRE)

Expand Down

0 comments on commit df3df8e

Please sign in to comment.