Fix incorrect slot calculation, and update submodule.

This commit is contained in:
MarioE 2017-06-23 14:44:17 -04:00
parent 9ad63c37a6
commit 241d4c566f
2 changed files with 4 additions and 4 deletions

View file

@ -2237,9 +2237,9 @@ namespace TShockAPI
Netplay.ListenPort = file.ServerPort;
}
if (file.MaxSlots > 235)
file.MaxSlots = 235;
Main.maxNetPlayers = file.MaxSlots + 20;
if (file.MaxSlots > Main.maxPlayers - file.ReservedSlots)
file.MaxSlots = Main.maxPlayers - file.ReservedSlots;
Main.maxNetPlayers = file.MaxSlots + file.ReservedSlots;
Netplay.ServerPassword = "";
if (!string.IsNullOrEmpty(_cliPassword))