(0fe4c8adb) Fixed server ignoring the max players value set in the "host server" menu

This commit is contained in:
Joonas Rikkonen
2019-06-09 17:39:14 +03:00
parent 942b8a8588
commit 45e05f7c4b

View File

@@ -708,7 +708,7 @@ namespace Barotrauma
" -queryport " + queryPort.ToString() +
" -password \"" + passwordBox.Text.Replace("\\", "\\\\").Replace("\"", "\\\"") + "\"" +
" -upnp " + useUpnpBox.Selected +
" -playercount " + maxPlayersBox.Text +
" -maxplayers " + maxPlayersBox.Text +
" -ownerkey " + ownerKey.ToString();
string filename = "DedicatedServer.exe";