summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-07-13 17:53:32 +0000
committertruelight <truelight@openttd.org>2006-07-13 17:53:32 +0000
commit05c7d429549d5608b3b6c27e02a394c4d210ba63 (patch)
treef8c3f8dcff586e93afd2be61c0b7e53a3bc3c37f
parent954a750902335ed6058e34bd1bd8fad4c6cd3ab1 (diff)
downloadopenttd-05c7d429549d5608b3b6c27e02a394c4d210ba63.tar.xz
(svn r5487) -Fix: [#8] UDP sockets were used even if network-availability was set to false (tokay)
-rw-r--r--openttd.c3
1 files changed, 2 insertions, 1 deletions
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