Fixed autorestart command being broken in dedicated server

This commit is contained in:
juanjp600
2017-12-01 20:35:34 -03:00
parent 18a5b3eabb
commit ee04eecd49

View File

@@ -146,15 +146,7 @@ namespace Barotrauma
if (Screen.Selected == GameMain.NetLobbyScreen) return;
GameMain.Server.EndGame();
}));
commands.Add(new Command("autorestart", "autorestart: Toggle automatic round restarting on/off.", (string[] args) =>
{
if (GameMain.Server == null) return;
GameMain.Server.AutoRestart = !GameMain.Server.AutoRestart;
NewMessage(GameMain.Server.AutoRestart ? "Automatic restart enabled." : "Automatic restart disabled.", Color.White);
}));
commands.Add(new Command("entitydata", "", (string[] args) =>
{
if (args.Length == 0) return;