changeset 4132:7b870a6204b3 draft

(svn r5487) -Fix: [#8] UDP sockets were used even if network-availability was set to false (tokay)
author truelight <truelight@openttd.org>
date Thu, 13 Jul 2006 17:53:32 +0000
parents 34dc5508289d
children c5f5f7574a00
files openttd.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/openttd.c
+++ b/openttd.c
@@ -971,7 +971,8 @@
 
 #ifdef ENABLE_NETWORK
 	// Check for UDP stuff
-	NetworkUDPGameLoop();
+	if (_network_available)
+		NetworkUDPGameLoop();
 
 	if (_networking) {
 		// Multiplayer