Fix maximum incoming connections

This commit is contained in:
Stanislav Zhukov 2016-07-13 04:24:42 +08:00
parent b09e4a0218
commit ce92f30022

View file

@ -122,7 +122,7 @@ int main(int argc, char *argv[])
if (peer->Startup((unsigned)players, &sd, 1) != RakNet::RAKNET_STARTED)
return 0;
peer->SetMaximumIncomingConnections((unsigned short)(players / 2));
peer->SetMaximumIncomingConnections((unsigned short)(players));
Networking networking(peer);