diff --git a/ZkLobbyServer/autohost/Commands/CmdStart.cs b/ZkLobbyServer/autohost/Commands/CmdStart.cs index eb89950fc..194204748 100644 --- a/ZkLobbyServer/autohost/Commands/CmdStart.cs +++ b/ZkLobbyServer/autohost/Commands/CmdStart.cs @@ -42,12 +42,15 @@ public override async Task ExecuteArmed(ServerBattle battle, Say e) } if (wait) { - await battle.SayBattle("Game starting in 10 seconds..."); battle.BlockPolls(10); + await battle.SayBattle("Game starting in 10 seconds..."); startTimer = new Timer(10000); - startTimer.Enabled = true; startTimer.AutoReset = false; - startTimer.Elapsed += (t, s) => { StartGame(battle); }; + startTimer.Enabled = true; + startTimer.Elapsed += (t, s) => { + startTimer.Enabled = false; + StartGame(battle); + }; } else { @@ -59,9 +62,11 @@ public override int GetPollWinMargin(ServerBattle battle, int numVoters) { // Require one more vote to start a game with uneven teams so at least one player in the smaller // team needs to agree to start the game. This is particularly relevant for the 2v1 case. - if (battle.Mode == PlasmaShared.AutohostMode.Teams) { + if (battle.Mode == PlasmaShared.AutohostMode.Teams) + { return base.GetPollWinMargin(battle, numVoters) + numVoters % 2; - } else + } + else { return base.GetPollWinMargin(battle, numVoters); }