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

This commit is contained in:
ESwordTheCat
2014-04-20 03:45:56 -04:00
committed by ZomgPonies
parent e179e95dea
commit cd8bc1d878
+6 -2
View File
@@ -119,11 +119,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()