Fixes machines being usable after a power failure

Fixes machines not gaining the NOPOWER flag after a power failure
because they were turned off and had use_power set to 0.
Fixes machines not gaining the NOPOWER flag after being moved into an
area with no power.

Both bugs allowed power using machines to be used in areas with no
power.
This commit is contained in:
mwerezak
2015-02-11 23:27:36 -05:00
parent 4deeebfe3e
commit b7e3a14e0d
2 changed files with 5 additions and 2 deletions

View File

@@ -288,6 +288,7 @@ datum/controller/game_controller/proc/process_machines_process()
last_thing_processed = Machine.type
if(Machine.process() != PROCESS_KILL)
if(Machine)
Machine.power_change()
if(Machine.use_power)
Machine.auto_use_power()
continue