Alarm subsystem is now processed by the scheduler. Removes now dead code.

This commit is contained in:
PsiOmega
2015-03-13 10:33:13 +01:00
parent 7420463f73
commit fac4eb08e3
9 changed files with 39 additions and 328 deletions

View File

@@ -0,0 +1,6 @@
/datum/controller/process/alarm/setup()
name = "alarm"
schedule_interval = 20 // every 2 seconds
/datum/controller/process/alarm/doWork()
alarm_manager.fire()

View File

@@ -1,9 +1,20 @@
/var/global/machinery_sort_required = 0
/datum/controller/process/machinery/setup()
name = "machinery"
schedule_interval = 20 // every 2 seconds
/datum/controller/process/machinery/doWork()
//#ifdef PROFILE_MACHINES
internal_sort()
internal_process()
/datum/controller/process/machinery/proc/internal_sort()
if(machinery_sort_required)
machinery_sort_required = 0
machines = dd_sortedObjectList(machines)
/datum/controller/process/machinery/proc/internal_process()
//#ifdef PROFILE_MACHINES
//machine_profiling.len = 0
//#endif
@@ -31,4 +42,3 @@
#endif
scheck()