From 2c58ab416e31626b0c8bfa4cee0fa110422a8905 Mon Sep 17 00:00:00 2001 From: cib Date: Thu, 24 May 2012 23:00:47 +0200 Subject: [PATCH 1/5] Added Crew Transfer Shuttle to the restart vote. --- code/datums/vote.dm | 4 +++- code/game/vote.dm | 36 +++++++++++++++++++++++++++--------- html/changelog.html | 1 + 3 files changed, 31 insertions(+), 10 deletions(-) diff --git a/code/datums/vote.dm b/code/datums/vote.dm index dc193540d3..3824d3c2dc 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 0c87858e84..616cae49c5 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?