mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 06:54:18 +01:00
Nearsighted Sensors Fix (#16338)
This commit is contained in:
@@ -58,6 +58,7 @@ somewhere on that shuttle. Subtypes of these can be then used to perform ship ov
|
||||
LAZYDISTINCTADD(viewers, WEAKREF(user))
|
||||
if(linked)
|
||||
LAZYDISTINCTADD(linked.navigation_viewers, WEAKREF(user))
|
||||
ADD_TRAIT(user, TRAIT_COMPUTER_VIEW, ref(src))
|
||||
|
||||
/obj/machinery/computer/ship/proc/unlook(var/mob/user)
|
||||
user.reset_view()
|
||||
@@ -87,6 +88,8 @@ somewhere on that shuttle. Subtypes of these can be then used to perform ship ov
|
||||
for(var/obj/machinery/computer/ship/sensors/sensor in linked.consoles)
|
||||
sensor.hide_contacts(user)
|
||||
|
||||
REMOVE_TRAIT(user, TRAIT_COMPUTER_VIEW, ref(src))
|
||||
|
||||
/obj/machinery/computer/ship/proc/viewing_overmap(mob/user)
|
||||
return (WEAKREF(user) in viewers) || (linked && (WEAKREF(user) in linked.navigation_viewers))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user