reduced time to wait for UDP broadcast answer to auto-detect network server
authorHolger Schemel <info@artsoft.org>
Wed, 27 Jun 2018 06:40:47 +0000 (08:40 +0200)
committerHolger Schemel <info@artsoft.org>
Wed, 27 Jun 2018 06:40:47 +0000 (08:40 +0200)
src/network.c

index 66a57e4591a870641f196999b8a393e660e25cb5..cabcfd3030485ce0b55fc24ba40f363f171bb89f 100644 (file)
@@ -219,7 +219,7 @@ boolean ConnectToServer(char *hostname, int port)
 
     DrawNetworkText("Looking for local network server ...");
 
-    if (SDLNet_CheckSockets(udp_socket_set, 1000) == 1)
+    if (SDLNet_CheckSockets(udp_socket_set, 500) == 1)
     {
       int num_packets = SDLNet_UDP_Recv(udp, &packet);