From b39a86078e43c641a96ffd2442a753a2b248aac8 Mon Sep 17 00:00:00 2001 From: Markolie Date: Tue, 17 Feb 2015 23:53:57 +0100 Subject: [PATCH] Let ghosts use teleporter --- code/_onclick/observer.dm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/_onclick/observer.dm b/code/_onclick/observer.dm index d8b5617d2a1..9fc7b0aa21d 100644 --- a/code/_onclick/observer.dm +++ b/code/_onclick/observer.dm @@ -65,9 +65,11 @@ /obj/machinery/teleport/hub/attack_ghost(mob/user as mob) var/atom/l = loc - var/obj/machinery/computer/teleporter/com = locate(/obj/machinery/computer/teleporter, locate(l.x - 2, l.y, l.z)) - if(com && com.locked) - user.loc = get_turf(com.locked) + var/obj/machinery/teleport/station/S = power_station + if(S) + var/obj/machinery/computer/teleporter/com = S.teleporter_console + if(com && com.target) + user.loc = get_turf(com.target) /obj/effect/portal/attack_ghost(mob/user as mob) if(target)