Machinery performance tweaks (#1744)

changes:

Machines' process() has been separated from auto_use_power().
Lights no longer process() and instead use auto_use_power() for power calculations.
Computers that didn't really need to process() no longer process().
Airlocks now use the scheduler to auto-close instead of process()ing.
Fixed a bug where clicking on an AI Status display to set its status did not work.
This commit is contained in:
Lohikar
2017-02-15 14:07:47 -06:00
committed by skull132
parent aba694af6c
commit a50d0a8390
21 changed files with 146 additions and 100 deletions

View File

@@ -184,7 +184,7 @@
holographic_mobs -= C
C.derez()
if(!..())
if(inoperable())
return
if(active)
use_power(item_power_usage * (holographic_objs.len + holographic_mobs.len))