mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
- 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user