-Fixed a bug where the AI could not repower itself if the APC's equipment was turned off.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4323 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
giacomand@gmail.com
2012-08-05 20:41:48 +00:00
parent fb600f9bce
commit b35fb98116
+6 -4
View File
@@ -141,10 +141,12 @@
*/
var/PRP //like ERP with the code, at least this stuff is no more 4x sametext
for (PRP=1, PRP<=4, PRP++)
for (var/obj/machinery/power/apc/APC in loc)
if (!(APC.stat & BROKEN))
theAPC = APC
break
var/area/AIarea = get_area(src)
for(var/area/A in AIarea.master.related)
for (var/obj/machinery/power/apc/APC in A)
if (!(APC.stat & BROKEN))
theAPC = APC
break
if (!theAPC)
switch(PRP)
if (1) src << "Unable to locate APC!"