Let depend on use_power var if we need to know the area.

This commit is contained in:
ESwordTheCat
2014-04-20 10:07:13 +08:00
parent 4d0df1b213
commit a7fba1d708

View File

@@ -120,11 +120,15 @@ Class Procs:
return ..()
/obj/machinery/proc/addAtProcessing()
myArea = loc.loc
if (use_power)
myArea = loc.loc
machines += src
/obj/machinery/proc/removeAtProcessing()
myArea = null
if (myArea)
myArea = null
machines -= src
/obj/machinery/Destroy()