Skip to content

Commit

Permalink
Fire off a synchronous TGS event before rebooting (tgstation#89394)
Browse files Browse the repository at this point in the history
This is to support configuration syncing in the new environment
  • Loading branch information
Cyberboss authored Feb 9, 2025
1 parent e171558 commit a2655fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/game/world.dm
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ GLOBAL_PROTECT(tracy_init_reason)
return
#else
if(TgsAvailable())
if(!fast_track)
TgsTriggerEvent("tg-PreReboot", wait_for_completion = TRUE)

var/do_hard_reboot
// check the hard reboot counter
var/ruhr = CONFIG_GET(number/rounds_until_hard_restart)
Expand Down

0 comments on commit a2655fd

Please sign in to comment.