mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
* 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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user