Fixes movement signal usage (#18909)

* Fixes these

* Make this just a var
This commit is contained in:
Cameron Lennox
2025-12-17 08:59:32 -05:00
committed by GitHub
parent 6e8a951ae2
commit fe448a1049
14 changed files with 32 additions and 33 deletions
@@ -349,7 +349,7 @@
video_source = comm.camera
comm.visible_message(span_danger("[icon2html(src,viewers(src))] New video connection from [comm]."))
update_active_camera_screen()
RegisterSignal(video_source, COMSIG_MOVABLE_ATTEMPTED_MOVE, PROC_REF(update_active_camera_screen))
RegisterSignal(video_source, COMSIG_MOVABLE_MOVED, PROC_REF(update_active_camera_screen))
video_source.AddComponent(/datum/component/recursive_move)
update_icon()
@@ -357,7 +357,7 @@
// Parameters: reason - the text reason to print for why it ended
// Description: Ends the video call by clearing video_source
/obj/item/communicator/proc/end_video(var/reason)
UnregisterSignal(video_source, COMSIG_MOVABLE_ATTEMPTED_MOVE)
UnregisterSignal(video_source, COMSIG_MOVABLE_MOVED)
show_static()
video_source = null