Merge pull request #12153 from duncathan/destroyfixes

Destroy() fixes
This commit is contained in:
Razharas
2015-10-06 09:27:41 +03:00
28 changed files with 52 additions and 57 deletions
+5 -1
View File
@@ -19,13 +19,17 @@ var/global/datum/controller/game_controller/master_controller = new()
if(master_controller != src)
if(istype(master_controller))
Recover()
master_controller.Del()
qdel(master_controller)
else
init_subtypes(/datum/subsystem, subsystems)
master_controller = src
calculateGCD()
/datum/controller/game_controller/Destroy()
..()
return QDEL_HINT_HARDDEL_NOW
/*
calculate the longest number of ticks the MC can wait between each cycle without causing subsystems to not fire on schedule