adds missing SIGNAL_HANDLERs (#17585)

* adds missing SIGNAL_HANDLERs

Added missing SIGNAL_HANDLER lines to many RegisterSignal() proc refs.

* Oopsies
This commit is contained in:
SatinIsle
2025-04-26 21:50:50 +02:00
committed by GitHub
parent 350c0a9c86
commit 152118c1d4
56 changed files with 78 additions and 3 deletions
+1 -1
View File
@@ -788,7 +788,7 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out.
/obj/item/var/ignore_visor_zoom_restriction = FALSE
/obj/item/proc/zoom(var/mob/living/M, var/tileoffset = 14,var/viewsize = 9) //tileoffset is client view offset in the direction the user is facing. viewsize is how far out this thing zooms. 7 is normal view
SIGNAL_HANDLER
if(isliving(usr)) //Always prefer usr if set
M = usr
@@ -34,6 +34,7 @@
Q.query()
/obj/item/antag_spawner/proc/get_winner()
SIGNAL_HANDLER
if(Q && Q.candidates.len)
var/mob/observer/dead/D = Q.candidates[1]
spawn_antag(D.client, get_turf(src))
@@ -43,6 +43,7 @@
// Parameters: None
// Description: This refreshes the camera location
/obj/item/communicator/proc/update_active_camera_screen()
SIGNAL_HANDLER
if(!video_source?.can_use())
show_static()
return
+1
View File
@@ -113,6 +113,7 @@ GLOBAL_LIST_EMPTY(GPS_list)
return (target.z in reachable_z_levels)
/obj/item/gps/proc/update_compass(var/update_compass_icon)
SIGNAL_HANDLER
compass.hide_waypoints(FALSE)
var/turf/my_turf = get_turf(src)
for(var/thing in tracking_devices)
@@ -336,6 +336,7 @@
//The clean up procs!
/obj/item/capture_crystal/proc/mob_was_deleted()
SIGNAL_HANDLER
UnregisterSignal(bound_mob, COMSIG_PARENT_QDELETING)
UnregisterSignal(owner, COMSIG_PARENT_QDELETING)
bound_mob.capture_caught = FALSE
@@ -346,6 +347,7 @@
update_icon()
/obj/item/capture_crystal/proc/owner_was_deleted()
SIGNAL_HANDLER
UnregisterSignal(owner, COMSIG_PARENT_QDELETING)
owner = null
active = FALSE
@@ -283,6 +283,7 @@
RegisterSignal(src, COMSIG_OBSERVER_MOVED, PROC_REF(check_loc))
/obj/item/card/id/cargo/miner/borg/proc/check_loc(atom/movable/mover, atom/old_loc, atom/new_loc)
SIGNAL_HANDLER
if(old_loc == R || old_loc == R.module)
last_robot_loc = old_loc
if(!istype(loc, /obj/machinery) && loc != R && loc != R.module)
@@ -304,6 +304,7 @@
RegisterSignal(src, COMSIG_OBSERVER_MOVED, PROC_REF(check_loc))
/obj/item/card/id/exploration/borg/proc/check_loc(atom/movable/mover, atom/old_loc, atom/new_loc)
SIGNAL_HANDLER
if(old_loc == R || old_loc == R.module)
last_robot_loc = old_loc
if(!istype(loc, /obj/machinery) && loc != R && loc != R.module)
@@ -30,6 +30,7 @@
Q.query()
/obj/structure/ghost_pod/proc/get_winner()
SIGNAL_HANDLER
busy = FALSE
var/deletion_candidate = FALSE
if(Q && Q.candidates.len) //Q should NEVER get deleted but...whatever, sanity.