diff --git a/code/datums/vote.dm b/code/datums/vote.dm index dc193540d32..3824d3c2dcd 100644 --- a/code/datums/vote.dm +++ b/code/datums/vote.dm @@ -8,4 +8,6 @@ var/customname var/choices = list() - var/enteringchoices = 0 \ No newline at end of file + var/enteringchoices = 0 + + var/instant_restart = 0 \ No newline at end of file diff --git a/code/game/vote.dm b/code/game/vote.dm index 0c87858e845..616cae49c55 100644 --- a/code/game/vote.dm +++ b/code/game/vote.dm @@ -106,16 +106,20 @@ world << "Result is \red Restart round." - world <<"\red World will reboot in 5 seconds" + if(vote.instant_restart) + world <<"\red World will reboot in 5 seconds" - //feedback_set_details("end_error","restart vote") + //feedback_set_details("end_error","restart vote") - if(blackbox) - blackbox.save_all_data_to_sql() + if(blackbox) + blackbox.save_all_data_to_sql() - sleep(50) - log_game("Rebooting due to restart vote") - world.Reboot() + sleep(50) + log_game("Rebooting due to restart vote") + world.Reboot() + else + // Call the shift change shuttle instead + init_shift_change() return @@ -256,10 +260,13 @@ usr << browse(text, "window=vote") else // voting to restart - text += "Vote to restart round in progress.
" + text += "Vote to call crew transfer shuttle round in progress.
" text += "[vote.endwait()] until voting is closed.
" - text += "Restart the world?