Skip to content

Commit

Permalink
Update vls.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikalpo committed Aug 17, 2023
1 parent bf3c06a commit f07d821
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@
return FALSE
if(loading)
return FALSE
if(state >= STATE_LOADED)
if(oldloc == src)// stops torps from getting sent back in instantly
return FALSE
if(state >= STATE_FEEDING)
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 f07d821

Please sign in to comment.