- Multiplayer Updates:

o Fixed problem in score screen (stack around variable szPlayerMisses was corrupt)
o Increased connection timeout to 120 seconds, which hopefully avoids the ID_CONNECTION_LOST when trying to connect with high ping
o Fixed wrong message in message box, when clients connection got lost

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4523 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2011-06-22 21:20:38 +00:00
parent 0d661ec0cf
commit b932d1accf
3 changed files with 19 additions and 13 deletions
+6
View File
@@ -1018,9 +1018,15 @@ void start_server (void)
ScreenMsg( FONT_ORANGE, MSG_MPSYSTEM, MPServerMessage[0] );
server=RakNetworkFactory::GetRakPeerInterface();
// WANNE: Set higher timeout than default (30 seconds)
server->SetTimeoutTime(120000, UNASSIGNED_SYSTEM_ADDRESS); // 120 Seconds
bool b = server->Startup(gMaxClients, 30, &SocketDescriptor(serverPort,0), 1);
server->SetMaximumIncomingConnections((gMaxClients));
server->SetOccasionalPing(true);
//RPC's
REGISTER_STATIC_RPC(server, sendPATH);