Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions code/controllers/subsystem.dm
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
enqueue()
state = SS_PAUSED
queued_time = QT
OnPause("SS ignite()")

///previously, this would have been named 'process()' but that name is used everywhere for different things!
///fire() seems more suitable. This is the procedure that gets called every 'wait' deciseconds.
Expand Down Expand Up @@ -255,6 +256,11 @@
state = SS_PAUSED
if(SS_SLEEPING)
state = SS_PAUSING
OnPause("SS pause()")

//for annoying logging
/datum/controller/subsystem/proc/OnPause(source)
return

/// Called after the config has been loaded or reloaded.
/datum/controller/subsystem/proc/OnConfigLoad()
Expand Down
5 changes: 5 additions & 0 deletions code/controllers/subsystem/ticker.dm
Original file line number Diff line number Diff line change
Expand Up @@ -768,3 +768,8 @@ SUBSYSTEM_DEF(ticker)

/datum/controller/subsystem/ticker/Shutdown()
gather_newscaster() //called here so we ensure the log is created even upon admin reboot

/datum/controller/subsystem/ticker/OnPause(source)
message_admins(span_boldannounce("Ticker SS was set to pause from source: [source]."))
message_admins(span_boldannounce("Call enqueue() on the Ticker SS or round will not end properly."))
log_game("Ticker SS was set to pause from source: [source].")