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
This commit is contained in:
n3ophyt3@gmail.com
2010-10-14 05:22:50 +00:00
parent 228f1b4d89
commit b7dd6fdeb6

View File

@@ -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