From b7dd6fdeb69cadee43bf350403d46da995cf668e Mon Sep 17 00:00:00 2001 From: "n3ophyt3@gmail.com" Date: Thu, 14 Oct 2010 05:22:50 +0000 Subject: [PATCH] Added a check so that malf AIs can't start a APC hack if one is already in progress, as this was apparently possible if they had multiple APC windows open. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@276 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/power/apc.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/power/apc.dm b/code/modules/power/apc.dm index 1a5259ae62d..b0ee14b076e 100644 --- a/code/modules/power/apc.dm +++ b/code/modules/power/apc.dm @@ -673,6 +673,9 @@ else if (href_list["malfhack"]) var/mob/living/silicon/ai/malfai = usr if( istype(malfai, /mob/living/silicon/ai) && !src.aidisabled ) + if (malfai.malfhacking) + malfai << "You are already hacking an APC." + return malfai << "Beginning override of APC systems. This takes some time, and you cannot perform other actions during the process." malfai.malfhack = src malfai.malfhacking = 1