[MIRROR] Harddel Fix Pack #42 + Better Live Reftracking Support [MDB IGNORE] (#10639)

* Harddel Fix Pack #42 + Better Live Reftracking Support

* awooga

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-01-12 22:57:49 +01:00
committed by GitHub
parent b0de5b283f
commit 65b8082678
110 changed files with 895 additions and 711 deletions

View File

@@ -38,8 +38,7 @@
*/
/obj/item/gun/medbeam/proc/LoseTarget()
if(active)
qdel(current_beam)
current_beam = null
QDEL_NULL(current_beam)
active = FALSE
on_beam_release(current_target)
current_target = null
@@ -51,6 +50,7 @@
*/
/obj/item/gun/medbeam/proc/beam_died()
SIGNAL_HANDLER
current_beam = null
active = FALSE //skip qdelling the beam again if we're doing this proc, because
if(isliving(loc))
to_chat(loc, span_warning("You lose control of the beam!"))
@@ -87,7 +87,7 @@
last_check = world.time
if(!los_check(loc, current_target))
qdel(current_beam)//this will give the target lost message
QDEL_NULL(current_beam)//this will give the target lost message
return
if(current_target)