diff --git a/code/controllers/subsystem/ticker.dm b/code/controllers/subsystem/ticker.dm index 20cc2d6cb81..a6c2350bf36 100644 --- a/code/controllers/subsystem/ticker.dm +++ b/code/controllers/subsystem/ticker.dm @@ -8,11 +8,14 @@ SUBSYSTEM_DEF(ticker) flags = SS_KEEP_TIMING runlevels = RUNLEVEL_LOBBY | RUNLEVEL_SETUP | RUNLEVEL_GAME - var/current_state = GAME_STATE_STARTUP //state of current round (used by process()) Use the defines GAME_STATE_* ! - var/force_ending = 0 //Round was ended by admin intervention - // If true, there is no lobby phase, the game starts immediately. + /// state of current round (used by process()) Use the defines GAME_STATE_* ! + var/current_state = GAME_STATE_STARTUP + /// Boolean to track if round was ended by admin intervention or a "round-ending" event, like summoning Nar'Sie, a blob victory, the nuke going off, etc. + var/force_ending = FALSE + /// If TRUE, there is no lobby phase, the game starts immediately. var/start_immediately = FALSE - var/setup_done = FALSE //All game setup done including mode post setup and + /// Boolean to track and check if our subsystem setup is done. + var/setup_done = FALSE var/datum/game_mode/mode = null diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index a96c24737a9..533327a1556 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -222,7 +222,7 @@ if(tgui_alert(usr, "This will end the round, are you SURE you want to do this?", "Confirmation", list("Yes", "No")) == "Yes") if(tgui_alert(usr, "Final Confirmation: End the round NOW?", "Confirmation", list("Yes", "No")) == "Yes") message_admins(span_adminnotice("[key_name_admin(usr)] has ended the round.")) - SSticker.force_ending = 1 //Yeah there we go APC destroyed mission accomplished + SSticker.force_ending = TRUE //Yeah there we go APC destroyed mission accomplished return else message_admins(span_adminnotice("[key_name_admin(usr)] decided against ending the round.")) diff --git a/code/modules/admin/verbs/server.dm b/code/modules/admin/verbs/server.dm index a8392962c3d..7fd2d666c3c 100644 --- a/code/modules/admin/verbs/server.dm +++ b/code/modules/admin/verbs/server.dm @@ -77,7 +77,7 @@ if(confirm == "Cancel") return if(confirm == "Yes") - SSticker.force_ending = 1 + SSticker.force_ending = TRUE SSblackbox.record_feedback("tally", "admin_verb", 1, "End Round") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /datum/admins/proc/toggleooc() diff --git a/code/modules/antagonists/blob/overmind.dm b/code/modules/antagonists/blob/overmind.dm index c9f14f0a1a5..46e6df2f8ec 100644 --- a/code/modules/antagonists/blob/overmind.dm +++ b/code/modules/antagonists/blob/overmind.dm @@ -199,7 +199,7 @@ GLOBAL_LIST_EMPTY(blob_nodes) main_objective.completed = TRUE to_chat(world, "[real_name] consumed the station in an unstoppable tide!") SSticker.news_report = BLOB_WIN - SSticker.force_ending = 1 + SSticker.force_ending = TRUE /mob/camera/blob/Destroy() QDEL_NULL(blobstrain) diff --git a/code/modules/power/singularity/narsie.dm b/code/modules/power/singularity/narsie.dm index 74f972294e1..dfe244cda2d 100644 --- a/code/modules/power/singularity/narsie.dm +++ b/code/modules/power/singularity/narsie.dm @@ -261,7 +261,7 @@ ///Helper to set the round to end asap. Current usage Cult round end code /proc/ending_helper() - SSticker.force_ending = 1 + SSticker.force_ending = TRUE /** * Selects cinematic to play as part of the cult end depending on the outcome then ends the round afterward