From 05c7d429549d5608b3b6c27e02a394c4d210ba63 Mon Sep 17 00:00:00 2001 From: truelight Date: Thu, 13 Jul 2006 17:53:32 +0000 Subject: (svn r5487) -Fix: [#8] UDP sockets were used even if network-availability was set to false (tokay) --- openttd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openttd.c b/openttd.c index 9b2c595de..b8ec45517 100644 --- a/openttd.c +++ b/openttd.c @@ -971,7 +971,8 @@ void GameLoop(void) #ifdef ENABLE_NETWORK // Check for UDP stuff - NetworkUDPGameLoop(); + if (_network_available) + NetworkUDPGameLoop(); if (_networking) { // Multiplayer -- cgit v1.2.3-70-g09d2