(svn r5487) -Fix: [#8] UDP sockets were used even if network-availability was set to false (tokay)
authortruelight
Thu, 13 Jul 2006 17:53:32 +0000
changeset 4132 ed67e886fd89
parent 4131 b3e608d7a838
child 4133 f9878fb9a365
(svn r5487) -Fix: [#8] UDP sockets were used even if network-availability was set to false (tokay)
openttd.c
--- a/openttd.c	Wed Jul 12 17:20:59 2006 +0000
+++ b/openttd.c	Thu Jul 13 17:53:32 2006 +0000
@@ -971,7 +971,8 @@
 
 #ifdef ENABLE_NETWORK
 	// Check for UDP stuff
-	NetworkUDPGameLoop();
+	if (_network_available)
+		NetworkUDPGameLoop();
 
 	if (_networking) {
 		// Multiplayer