From f72b4c697f31f0d011433f7de8413a185ae9c57f Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Mon, 5 Mar 2018 11:41:46 +0200 Subject: [PATCH] Fixed dedicated servers not resetting votes when a round ends. Closes #307 --- .../BarotraumaServer/Source/Screens/NetLobbyScreen.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Barotrauma/BarotraumaServer/Source/Screens/NetLobbyScreen.cs b/Barotrauma/BarotraumaServer/Source/Screens/NetLobbyScreen.cs index e7552d96a..dab5716c4 100644 --- a/Barotrauma/BarotraumaServer/Source/Screens/NetLobbyScreen.cs +++ b/Barotrauma/BarotraumaServer/Source/Screens/NetLobbyScreen.cs @@ -175,6 +175,12 @@ namespace Barotrauma lastUpdateID++; } + public override void Select() + { + base.Select(); + GameMain.Server.Voting.ResetVotes(GameMain.Server.ConnectedClients); + } + public void RandomizeSettings() { if (GameMain.Server.RandomizeSeed) LevelSeed = ToolBox.RandomSeed(8);