Fix the issue with time not counting down before game start.

This commit is contained in:
cib
2012-11-24 19:02:55 +01:00
parent 6367d829eb
commit 5120d70e04
2 changed files with 10 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ datum/controller/vote
if(mode)
// No more change mode votes after the game has started.
// 3 is GAME_STATE_PLAYING, but that #define is undefined for some reason
if(mode == "gamemode" && ticker.current_state >= 3)
if(mode == "gamemode" && ticker.current_state >= 2)
world << "<b>Voting aborted due to game start.</b>"
src.reset()
return
@@ -151,10 +151,15 @@ datum/controller/vote
reset()
switch(vote_type)
if("restart") choices.Add("Restart Round","Continue Playing")
if("restart")
choices.Add("Restart Round","Continue Playing")
if("gamemode")
if(ticker.current_state >= 2)
return 0
choices.Add(config.votable_modes)
if("crew_transfer")
if(ticker.current_state <= 2)
return 0
question = "End the shift?"
choices.Add("Initiate Crew Transfer", "Continue The Round")
if("custom")