Fixed dedicated servers not resetting votes when a round ends. Closes #307

This commit is contained in:
Joonas Rikkonen
2018-03-05 11:41:46 +02:00
parent 4f32a90e62
commit f72b4c697f
@@ -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);