(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 f7f2215a9110
parent 4131 6252fa02e459
child 4133 88f290592081
(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