[GBP: NO UPDATE] Add moved signals to ai movement procs (#17364)

This commit is contained in:
Luc
2022-01-24 14:31:52 +01:00
committed by GitHub
parent a5d8468ce4
commit 9ca8b4dc6e
3 changed files with 5 additions and 1 deletions
+2
View File
@@ -131,7 +131,9 @@
// Used in shuttle movement and AI eye stuff.
// Primarily used to notify objects being moved by a shuttle/bluespace fuckup.
/atom/movable/proc/setLoc(T, teleported=0)
var/old_loc = loc
loc = T
Moved(old_loc, get_dir(old_loc, loc))
/atom/movable/Move(atom/newloc, direct = 0, movetime)
if(!loc || !newloc) return 0
@@ -134,7 +134,9 @@
if(!isturf(eye_user.loc))
return
T = get_turf(T)
var/old_loc = loc
loc = T
Moved(old_loc, get_dir(old_loc, loc))
if(use_static)
GLOB.cameranet.visibility(src, GetViewerClient())
if(visible_icon)
@@ -28,7 +28,7 @@
if(!isturf(ai.loc))
return
T = get_turf(T)
loc = T
..(T)
if(use_static)
ai.camera_visibility(src)
if(ai.client)