mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-15 01:46:30 +01:00
Fix several hard-dels, add harddel ref tracking (#16174)
This commit is contained in:
@@ -32,7 +32,6 @@
|
||||
set_listening(TRUE)
|
||||
recalculateChannels(TRUE)
|
||||
possibly_deactivate_in_loc()
|
||||
moved_event.register(src, src, PROC_REF(possibly_deactivate_in_loc))
|
||||
|
||||
/obj/item/device/radio/headset/proc/possibly_deactivate_in_loc()
|
||||
if(ismob(loc))
|
||||
@@ -45,6 +44,10 @@
|
||||
QDEL_NULL(keyslot2)
|
||||
return ..()
|
||||
|
||||
/obj/item/device/radio/headset/Moved(atom/old_loc, forced)
|
||||
. = ..()
|
||||
possibly_deactivate_in_loc()
|
||||
|
||||
/obj/item/device/radio/headset/set_listening(new_listening, actual_setting = TRUE)
|
||||
. = ..()
|
||||
if(listening && on)
|
||||
|
||||
Reference in New Issue
Block a user