From 9ca8b4dc6edca3c9da781b8b2410a7d88aa1e161 Mon Sep 17 00:00:00 2001 From: Luc <89928798+lewcc@users.noreply.github.com> Date: Mon, 24 Jan 2022 08:31:52 -0500 Subject: [PATCH] [GBP: NO UPDATE] Add moved signals to ai movement procs (#17364) --- code/game/atoms_movable.dm | 2 ++ code/game/machinery/computer/camera_advanced.dm | 2 ++ code/modules/mob/living/silicon/ai/freelook/eye.dm | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/code/game/atoms_movable.dm b/code/game/atoms_movable.dm index 2b5f2a0502b..564a820bb83 100644 --- a/code/game/atoms_movable.dm +++ b/code/game/atoms_movable.dm @@ -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 diff --git a/code/game/machinery/computer/camera_advanced.dm b/code/game/machinery/computer/camera_advanced.dm index 55be5527a0d..9e57ed518f6 100644 --- a/code/game/machinery/computer/camera_advanced.dm +++ b/code/game/machinery/computer/camera_advanced.dm @@ -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) diff --git a/code/modules/mob/living/silicon/ai/freelook/eye.dm b/code/modules/mob/living/silicon/ai/freelook/eye.dm index 2a233bd96d6..de7324f4b8e 100644 --- a/code/modules/mob/living/silicon/ai/freelook/eye.dm +++ b/code/modules/mob/living/silicon/ai/freelook/eye.dm @@ -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)