Skip to content

Commit

Permalink
VLS unloading fix (#2521)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikalpo authored Sep 21, 2023
1 parent 3dbbfe9 commit 890eb46
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
return FALSE
if(loading)
return FALSE
if(oldloc == src)// stops torps from getting sent back in instantly
return FALSE
if(state >= STATE_LOADED)
return FALSE
load(torp)
Expand Down Expand Up @@ -133,9 +135,7 @@
hatch.toggle(HT_CLOSED)

/obj/machinery/ship_weapon/vls/unload()
loading = TRUE // This prevents torps from immediately falling back into the VLS tube
. = ..()
loading = FALSE
if(!hatch)
return
hatch.toggle(HT_CLOSED)
Expand Down

0 comments on commit 890eb46

Please sign in to comment.