From 3ba4d4784ff36fecaa8101dde8e40b1de70e6b5e Mon Sep 17 00:00:00 2001 From: ShizCalev Date: Tue, 23 Aug 2022 10:35:47 -0400 Subject: [PATCH] adds location atom to deletion message (#69372) Helps with debugging to know that a flash was deleted from engi borg #424 at robotics than just a flash was deleted at X,Y,Z. --- code/modules/admin/view_variables/admin_delete.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/view_variables/admin_delete.dm b/code/modules/admin/view_variables/admin_delete.dm index 2da53df20e8..c28b366f926 100644 --- a/code/modules/admin/view_variables/admin_delete.dm +++ b/code/modules/admin/view_variables/admin_delete.dm @@ -5,8 +5,10 @@ if(istype(A)) var/turf/T = get_turf(A) if(T) - coords = "at [COORD(T)]" - jmp_coords = "at [ADMIN_COORDJMP(T)]" + var/atom/a_loc = A.loc + var/is_turf = isturf(a_loc) + coords = "[is_turf ? "at" : "from [a_loc] at"] [AREACOORD(T)]" + jmp_coords = "[is_turf ? "at" : "from [a_loc] at"] [ADMIN_VERBOSEJMP(T)]" else jmp_coords = coords = "in nullspace"