Standardizes subsystem Shutdown order

This commit is contained in:
Cyberboss
2017-04-14 19:04:32 -04:00
parent b076895ebb
commit 652a655e29
2 changed files with 2 additions and 2 deletions
-2
View File
@@ -231,14 +231,12 @@
/*
* Sorting
*/
/*
//Reverses the order of items in the list
/proc/reverselist(list/input)
var/list/output = list()
for(var/i = input.len; i >= 1; i--)
output += input[i]
return output
*/
//Randomize: Return the list in a random order
/proc/shuffle(list/L)
+2
View File
@@ -80,6 +80,8 @@ GLOBAL_VAR_INIT(CURRENT_TICKLIMIT, TICK_LIMIT_RUNNING)
/datum/controller/master/Shutdown()
processing = FALSE
sortTim(subsystems, /proc/cmp_subsystem_init)
subsystems = reverselist(subsystems)
for(var/datum/controller/subsystem/ss in subsystems)
ss.Shutdown()