# HG changeset patch # User truelight # Date 1152813212 0 # Node ID f7f2215a911097b60b8dedaec478164809598f35 # Parent 6252fa02e4597980ae25f98c77a9748fa2cb29f8 (svn r5487) -Fix: [#8] UDP sockets were used even if network-availability was set to false (tokay) diff -r 6252fa02e459 -r f7f2215a9110 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