Skip to content

Commit

Permalink
TGS Test Merge (#7910)
Browse files Browse the repository at this point in the history
  • Loading branch information
cm13-github committed Dec 25, 2024
2 parents 1796b1f + 7c17223 commit 34092c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions code/controllers/subsystem/ticker.dm
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ SUBSYSTEM_DEF(ticker)

if(graceful)
to_chat_forced(world, "<h3>[SPAN_BOLDNOTICE("Shutting down...")]</h3>")
world.Reboot(FALSE)
world.Reboot()
return

if(!delay)
Expand All @@ -396,7 +396,7 @@ SUBSYSTEM_DEF(ticker)
log_game("Rebooting World. [reason]")
to_chat_forced(world, "<h3>[SPAN_BOLDNOTICE("Rebooting...")]</h3>")

world.Reboot(TRUE)
world.Reboot()

/datum/controller/subsystem/ticker/proc/create_characters()
if(!GLOB.RoleAuthority)
Expand Down
2 changes: 1 addition & 1 deletion code/controllers/subsystem/vote.dm
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ SUBSYSTEM_DEF(vote)
active_admins = TRUE
break
if(!active_admins)
world.Reboot("Restart vote successful.")
world.Reboot()
else
to_chat(world, "<span style='boltnotice'>Notice:Restart vote will not restart the server automatically because there are active admins on.</span>")
message_admins("A restart vote has passed, but there are active admins on with +SERVER, so it has been canceled. If you wish, you may restart the server.")
Expand Down
3 changes: 3 additions & 0 deletions code/game/world.dm
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ GLOBAL_LIST_INIT(reboot_sfx, file2list("config/reboot_sfx.txt"))
return json_encode(response)

/world/Reboot(reason)
if(reason == 1 || reason == 2) // host/topic
return

Master.Shutdown()
send_reboot_sound()
var/server = CONFIG_GET(string/server)
Expand Down

0 comments on commit 34092c3

Please sign in to comment.