Fixes APC load totals periodically doubling

Also fixes areas updating excessively when update_use_power() was
called.
This commit is contained in:
mwerezak
2014-09-06 01:30:44 -04:00
parent 265c46be7d
commit e045c84f97
3 changed files with 8 additions and 11 deletions

View File

@@ -299,6 +299,7 @@ datum/controller/game_controller/proc/process_machines_power()
var/area/A = active_areas[i]
if(A.powerupdate && A.master == A)
A.powerupdate -= 1
A.clear_usage()
for(var/j = 1; j <= A.related.len; j++)
var/area/SubArea = A.related[j]
for(var/obj/machinery/M in SubArea)