From 18d253a98923544a1b8d2dd6ae2ac84e45f1648e Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 25 Aug 2022 00:25:22 +0200 Subject: [PATCH] [MIRROR] adds location atom to deletion message [MDB IGNORE] (#15764) * 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. * adds location atom to deletion message Co-authored-by: ShizCalev --- 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 60cf222bd11..63a2d7a9e13 100644 --- a/code/modules/admin/view_variables/admin_delete.dm +++ b/code/modules/admin/view_variables/admin_delete.dm @@ -6,8 +6,10 @@ if(istype(A)) T = get_turf(A) // SKYRAT EDIT, orginal: 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"