From 08708448988ee91f50d13c414fe8e3454b151b3c Mon Sep 17 00:00:00 2001 From: Ccomp5950 Date: Sun, 19 Jan 2014 21:26:15 -0600 Subject: [PATCH] SMES fix, AI's can now use them. Thinking this was a typo, though quite honestly I'm not sure why this test is even here as distance checks are built into nanoUI but since feradan put it in I'm kinda not wanting to remove it. --- code/modules/power/smes.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/power/smes.dm b/code/modules/power/smes.dm index 9ceeb4e21e4..3c0ec85ce84 100644 --- a/code/modules/power/smes.dm +++ b/code/modules/power/smes.dm @@ -215,7 +215,7 @@ //world << "[href] ; [href_list[href]]" - if (!istype(src.loc, /turf) || istype(usr, /mob/living/silicon/ai)) + if (!istype(src.loc, /turf) && !istype(usr, /mob/living/silicon/)) return 0 // Do not update ui if( href_list["cmode"] )