Fixes get_apc with a BYOND bug workaround

Also reverts the mining asteroid-specific workaround
This commit is contained in:
Krausus
2015-06-18 04:54:31 -04:00
parent 36b7e7b233
commit c0075f41d0
2 changed files with 5 additions and 3 deletions
+5 -2
View File
@@ -404,8 +404,11 @@
return null
/area/proc/get_apc()
var/obj/machinery/power/apc/FINDME = locate() in src
if (FINDME)
// This was a simple locate() in src, but an unresolved BYOND bug causes trying to locate() in an
// area to take an inconceivably long time, especially for large areas.
// See: http://www.byond.com/forum/?post=1860571
var/obj/machinery/power/apc/FINDME
for(FINDME in src)
return FINDME