From 81e06c3d8aade130af7cf2f36be011118b9f0101 Mon Sep 17 00:00:00 2001
From: jimmyl <70376633+mc-oofert@users.noreply.github.com>
Date: Fri, 13 Oct 2023 19:40:59 +0200
Subject: [PATCH] sdql readout now displays location of turfs properly (#78951)
## About The Pull Request
previously

now

## Why It's Good For The Game
bug or something bad
## Changelog
:cl:
fix: sqdl2 query readout displays location of turfs properly
/:cl:
---
code/modules/admin/verbs/SDQL2/SDQL_2.dm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/code/modules/admin/verbs/SDQL2/SDQL_2.dm b/code/modules/admin/verbs/SDQL2/SDQL_2.dm
index 0702183bfe2..a124627399c 100644
--- a/code/modules/admin/verbs/SDQL2/SDQL_2.dm
+++ b/code/modules/admin/verbs/SDQL2/SDQL_2.dm
@@ -730,7 +730,11 @@ GLOBAL_DATUM_INIT(sdql2_vv_statobj, /obj/effect/statclick/sdql2_vv_all, new(null
var/atom/A = object
var/turf/T = A.loc
var/area/a
- if(istype(T))
+ if(isturf(A))
+ a = A.loc
+ T = A //this should prevent the "inside" part
+ text_list += " at [ADMIN_COORDJMP(A)]"
+ else if(istype(T))
text_list += " at [T] [ADMIN_COORDJMP(T)]"
a = T.loc
else