mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 10:22:13 +00:00
Automatic MC Re-Starter 9001 (#322)
* fixed runtime in air.dm fix was made in LINDA_turf_tile.dm though * fixes runtime in corpse.dm * fixes runtime in species.dm * automatically restarts the MC sometimes When the timer SS crashes, here's the fix hardcoded with love * supermatter area icon * better admin logs * better mentorhelp message for admins * fixes map * removes depreciated var * MC rebooter 9001
This commit is contained in:
@@ -79,12 +79,12 @@ var/datum/controller/subsystem/timer/SStimer
|
||||
do
|
||||
var/datum/callback/callBack = timer.callBack
|
||||
if (!callBack)
|
||||
message_admins("The timer SS has crashed because a timer did not return a callback. MC restarted automatically. Timer hash: [timer.hash]")
|
||||
qdel(timer)
|
||||
bucket_resolution = null //force bucket recreation
|
||||
CRASH("Invalid timer: timer.timeToRun=[timer.timeToRun]||QDELETED(timer)=[QDELETED(timer)]||world.time=[world.time]||head_offset=[head_offset]||practical_offset=[practical_offset]||timer.spent=[timer.spent]")
|
||||
//Temporary fix
|
||||
Recreate_MC()
|
||||
message_admins("The timer SS has crashed. A full report can be found in the runtime viewer. MC restarted automatically.")
|
||||
//I really don't know if I should keep this crash log in; I feel like it might cause problems.
|
||||
// CRASH("Invalid timer: timer.timeToRun=[timer.timeToRun]||QDELETED(timer)=[QDELETED(timer)]||world.time=[world.time]||head_offset=[head_offset]||practical_offset=[practical_offset]||timer.spent=[timer.spent]")
|
||||
|
||||
if (!timer.spent)
|
||||
spent += timer
|
||||
|
||||
Reference in New Issue
Block a user