Adds proper cleanbot bug detection.

This commit is contained in:
MrStonedOne
2016-06-28 08:33:03 -07:00
parent 6f292fee8c
commit 60819e0c48
3 changed files with 25 additions and 3 deletions
+5 -3
View File
@@ -50,6 +50,7 @@ var/CURRENT_TICKLIMIT = TICK_LIMIT_RUNNING
/datum/controller/master/New()
// Highlander-style: there can only be one! Kill off the old and replace it with the new.
check_for_cleanbot_bug()
subsystems = list()
if (Master != src)
if (istype(Master))
@@ -112,6 +113,7 @@ var/CURRENT_TICKLIMIT = TICK_LIMIT_RUNNING
// Please don't stuff random bullshit here,
// Make a subsystem, give it the SS_NO_FIRE flag, and do your work in it's Initialize()
/datum/controller/master/proc/Setup()
check_for_cleanbot_bug()
world << "<span class='boldannounce'>Initializing subsystems...</span>"
// Sort subsystems by init_order, so they initialize in the correct order.
@@ -131,13 +133,13 @@ var/CURRENT_TICKLIMIT = TICK_LIMIT_RUNNING
// Sort subsystems by display setting for easy access.
sortTim(subsystems, /proc/cmp_subsystem_display)
check_for_cleanbot_bug()
// Set world options.
world.sleep_offline = 1
world.fps = config.fps
check_for_cleanbot_bug()
sleep(1)
check_for_cleanbot_bug()
// Loop.
Master.StartProcessing()