Maelstrom: Better heuristic for network timeout.

https://github.com/libsdl-org/Maelstrom/commit/8f90c8538be8ba7e5d046264b48d3ecf10c7c9bf

From 8f90c8538be8ba7e5d046264b48d3ecf10c7c9bf Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 26 Nov 2011 20:51:41 -0500
Subject: [PATCH] Better heuristic for network timeout.

---
 game/netplay.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/game/netplay.cpp b/game/netplay.cpp
index 1a3ede2f..5f08150c 100644
--- a/game/netplay.cpp
+++ b/game/netplay.cpp
@@ -35,7 +35,7 @@
 //#define DEBUG_NETWORK 1
 
 // Define this to simulate packet loss
-//#define DEBUG_PACKETLOSS 10
+//#define DEBUG_PACKETLOSS 5
 
 
 UDPsocket gNetFD;
@@ -226,7 +226,7 @@ static SYNC_RESULT AwaitSync()
 	/* Wait for Ack's */
 	timeout = 0;
 	while (WaitingForAck()) {
-		int ready = SDLNet_CheckSockets(SocketSet, 50);
+		int ready = SDLNet_CheckSockets(SocketSet, 2*FRAME_DELAY_MS);
 		if (ready < 0) {
 			error("Network error: SDLNet_CheckSockets()\r\n");
 			return SYNC_NETERROR;