diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index a0ace00f223..55af7096324 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -1391,3 +1391,22 @@ proc/pick_closest_path(value) #define RANDOM_COLOUR (rgb(rand(0,255),rand(0,255),rand(0,255))) #define QDEL_IN(item, time) addtimer(GLOBAL_PROC, "qdel", time, FALSE, item) + +/proc/check_for_cleanbot_bug() + var/static/admins_warned //bet you didn't know you could do this! + var/icon/Icon_test = icon('icons/BadAss.dmi') + if(!istype(Icon_test)) + var/msg = "Cleanbot bug detected in icons! Icons are mapping to [Icon_test]" + if (!admins_warned) + admins_warned = 1 + spawn(25) + message_admins(msg) + stack_trace(msg) + var/sound/Sound_test = sound('sound/misc/null.ogg') + if(!istype(Sound_test)) + var/msg = "Cleanbot bug detected in sounds! Sounds are mapping to [Sound_test]" + if (!admins_warned) + admins_warned = 1 + spawn(25) + message_admins(msg) + stack_trace(msg) \ No newline at end of file diff --git a/code/controllers/master.dm b/code/controllers/master.dm index 6d2e380242e..6c0658aa2e7 100644 --- a/code/controllers/master.dm +++ b/code/controllers/master.dm @@ -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 << "Initializing subsystems..." // 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() diff --git a/code/world.dm b/code/world.dm index e410521f53f..0d1c298e64c 100644 --- a/code/world.dm +++ b/code/world.dm @@ -9,6 +9,7 @@ var/global/list/map_transition_config = MAP_TRANSITION_CONFIG /world/New() + check_for_cleanbot_bug() map_ready = 1 #if (PRELOAD_RSC == 0)