Move default restart timeout to config (#24827)

* Move default restart timeout to config

* Edit comments

* Protect restart_timeout from VV edit

* Update code/controllers/configuration/sections/general_configuration.dm

Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com>

* Protected var no more

---------

Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com>
This commit is contained in:
Mikhail Dzianishchyts
2024-04-03 21:19:39 +03:00
committed by GitHub
parent cc0eee4b4d
commit d2214dfcf8
3 changed files with 7 additions and 4 deletions
+1 -3
View File
@@ -13,8 +13,6 @@ SUBSYSTEM_DEF(ticker)
var/round_start_time = 0
/// Time that the round started
var/time_game_started = 0
/// Default timeout for if world.Reboot() doesnt have a time specified
var/const/restart_timeout = 75 SECONDS
/// Current status of the game. See code\__DEFINES\game.dm
var/current_state = GAME_STATE_STARTUP
/// Do we want to force-start as soon as we can
@@ -724,7 +722,7 @@ SUBSYSTEM_DEF(ticker)
delay = max(0, delay)
else
// Use default restart timeout
delay = restart_timeout
delay = max(0, GLOB.configuration.general.restart_timeout SECONDS)
to_chat(world, "<span class='boldannounceooc'>Rebooting world in [delay/10] [delay > 10 ? "seconds" : "second"]. [reason]</span>")