From 36e4f5c55cba8f7965d43832444bbbcbbbbf345e Mon Sep 17 00:00:00 2001 From: "noisomehollow@lycos.com" Date: Mon, 13 Jun 2011 02:25:24 +0000 Subject: [PATCH] Fix for 1687. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1688 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/gamemodes/extra/ninja_equipment.dm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/code/game/gamemodes/extra/ninja_equipment.dm b/code/game/gamemodes/extra/ninja_equipment.dm index e68f68cf7e1..50da908d0a1 100644 --- a/code/game/gamemodes/extra/ninja_equipment.dm +++ b/code/game/gamemodes/extra/ninja_equipment.dm @@ -1057,16 +1057,14 @@ ________________________________________________________________________________ var/obj/machinery/A = target U << "\blue Hacking \the [A]..." spawn(0) + var/turf/location = get_turf(U) for(var/mob/living/silicon/ai/AI in world) - if(U.loc) - AI << "\red Network Alert: Hacking attempt detected in [U.loc]." - else - AI << "\red Network Alert: Hacking attempt detected. Unable to pinpoint location." - if(A:files&&A:files.known_tech.len)) + AI << "\red Network Alert: Hacking attempt detected [location?"in [location]":"Unable to pinpoint location"]." + if(A:files&&A:files.known_tech.len) while(G.candrain&&!isnull(A)) for(var/datum/tech/current_data in S.stored_research) U << "\blue Checking \the [current_data.name] database." - if(do_after(U,S.s_delay) + if(do_after(U,S.s_delay)) for(var/datum/tech/analyzing_data in A:files.known_tech) if(current_data.id==analyzing_data.id) if(analyzing_data.level>current_data.level)