From ebea30f8679764374fd63a00837fb701709b8352 Mon Sep 17 00:00:00 2001 From: Mars Date: Sun, 24 Sep 2017 01:42:20 +0200 Subject: [PATCH] Makes holograms end when the AI can't keep them up. --- code/game/machinery/hologram.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/machinery/hologram.dm b/code/game/machinery/hologram.dm index 6cb866d27ed..b98db12cb20 100644 --- a/code/game/machinery/hologram.dm +++ b/code/game/machinery/hologram.dm @@ -172,7 +172,7 @@ For the other part of the code, check silicon say.dm. Particularly robot talk.*/ clear_holo()//If not, we want to get rid of the hologram. var/obj/machinery/hologram/holopad/pad_close = get_closest_atom(/obj/machinery/hologram/holopad, holopads, theai.eyeobj) if(get_dist(pad_close, theai.eyeobj) <= pad_close.holo_range) - if(!(pad_close.stat & NOPOWER) && !pad_close.hologram) + if(!(pad_close.stat & NOPOWER) && !pad_close.hologram && (theai && !theai.stat && theai.client && theai.eyeobj)) pad_close.activate_holo(theai, 1) if(pad_close.hologram) pad_close.hologram.forceMove(target_turf)