From 00ecc2bd70b268294d2b932869fdf1ae3958917c Mon Sep 17 00:00:00 2001 From: JixS4v <61665800+JixS4v@users.noreply.github.com> Date: Mon, 2 Sep 2024 10:18:25 +0200 Subject: [PATCH] Revert "Kills atmos callbacks" This reverts commit d21e4ab001640d53e3f215232f82b7b927b6a17a. --- code/controllers/subsystem/callback.dm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 code/controllers/subsystem/callback.dm diff --git a/code/controllers/subsystem/callback.dm b/code/controllers/subsystem/callback.dm new file mode 100644 index 0000000000000..ecc65760f4e80 --- /dev/null +++ b/code/controllers/subsystem/callback.dm @@ -0,0 +1,14 @@ +SUBSYSTEM_DEF(callbacks) + name = "Auxtools Callbacks" + flags = SS_TICKER | SS_NO_INIT + wait = 1 + priority = FIRE_PRIORITY_CALLBACKS + +/proc/process_atmos_callbacks() + SScallbacks.can_fire = 0 + SScallbacks.flags |= SS_NO_FIRE + CRASH("Auxtools not found! Callback subsystem shutting itself off.") + +/datum/controller/subsystem/callbacks/fire() + if(process_atmos_callbacks(MC_TICK_REMAINING_MS)) + pause()