Checks for SMES Z level at power_failure.dm

Little fix which checks Z level of SMES before drying it up at grid_check event.
This commit is contained in:
Lancer411
2014-08-12 22:05:28 +08:00
committed by ZomgPonies
parent b2acb96393
commit 72aac48662
+2 -2
View File
@@ -9,7 +9,7 @@
for(var/obj/machinery/power/smes/S in world)
var/area/current_area = get_area(S)
if(current_area.type in skipped_areas)
if(current_area.type in skipped_areas || S.z != 1)
continue
S.charge = 0
S.output = 0
@@ -34,7 +34,7 @@
C.cell.charge = C.cell.maxcharge
for(var/obj/machinery/power/smes/S in world)
var/area/current_area = get_area(S)
if(current_area.type in skipped_areas)
if(current_area.type in skipped_areas || S.z != 1)
continue
S.charge = S.capacity
S.output = 200000