mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
Adds proper cleanbot bug detection.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user