From 408c068c01234a6968fab5d62b465e2431a53eab Mon Sep 17 00:00:00 2001
From: TDSSS <32099540+TDSSS@users.noreply.github.com>
Date: Sat, 7 Sep 2019 19:06:57 +0200
Subject: [PATCH] Initial commit
---
code/modules/telesci/gps.dm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/code/modules/telesci/gps.dm b/code/modules/telesci/gps.dm
index 29a4509ae7a..00999b47f7a 100644
--- a/code/modules/telesci/gps.dm
+++ b/code/modules/telesci/gps.dm
@@ -11,6 +11,7 @@ var/list/GPS_list = list()
var/emped = 0
var/turf/locked_location
var/tracking = TRUE
+ var/local = FALSE //local gps show up only to gps on same z level
/obj/item/gps/New()
..()
@@ -63,13 +64,15 @@ var/list/GPS_list = list()
t += "
Bluespace coordinates saved: [locked_location.loc]"
gps_window_height += 20
+ var/turf/own_pos = get_turf(src)
+ var/own_z = own_pos.z
for(var/obj/item/gps/G in GPS_list)
var/turf/pos = get_turf(G)
var/area/gps_area = get_area(G)
var/tracked_gpstag = G.gpstag
if(G.emped == 1)
t += "
[tracked_gpstag]: ERROR"
- else if(G.tracking)
+ else if(G.tracking && (!G.local || (own_z == pos.z)))
t += "
[tracked_gpstag]: [format_text(gps_area.name)] ([pos.x], [pos.y], [pos.z])"
else
continue
@@ -115,6 +118,7 @@ var/list/GPS_list = list()
/obj/item/gps/internal
icon_state = null
flags = ABSTRACT
+ local = TRUE
gpstag = "Eerie Signal"
desc = "Report to a coder immediately."
invisibility = INVISIBILITY_MAXIMUM