From 9f44737641288ce8a6163ef20f48ca85048b1d1f Mon Sep 17 00:00:00 2001 From: "n3ophyt3@gmail.com" Date: Fri, 25 Feb 2011 04:53:18 +0000 Subject: [PATCH] Added a thing so it's easier to track if the master controller has assed up. Admins now have an extra bit in their status tab that monitors the master controller. Under normal circumstances, it should say "no" during pre-round, switch to "yes" for the first few seconds of the actual round, then switch to "no" while occasionally blinking to "yes". If it stops blinking to "yes", the master controller has broken and you need to press the button. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1130 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/master_controller.dm | 4 ++++ code/modules/mob/mob.dm | 1 + 2 files changed, 5 insertions(+) diff --git a/code/game/master_controller.dm b/code/game/master_controller.dm index 0cd7e0592b4..07766da1beb 100644 --- a/code/game/master_controller.dm +++ b/code/game/master_controller.dm @@ -1,4 +1,5 @@ var/global/datum/controller/game_controller/master_controller //Set in world.New() +var/global/controllernum = "no" datum/controller/game_controller var/processing = 1 @@ -60,6 +61,8 @@ datum/controller/game_controller if(!processing) return 0 //world << "Processing" + controllernum = "yes" + spawn (100) controllernum = "no" var/start_time = world.timeofday @@ -110,4 +113,5 @@ datum/controller/game_controller spawn process() + return 1 \ No newline at end of file diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index 1a8b86fa36a..3b81d1f1ba3 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -2165,6 +2165,7 @@ note dizziness decrements automatically in the mob's Life() proc. if (src.client && src.client.holder) stat(null, "([x], [y], [z])") stat(null, "CPU: [world.cpu]") + stat(null, "Controller: [controllernum]") //if (master_controller) // stat(null, "Loop: [master_controller.loop_freq]")