summaryrefslogtreecommitdiff
path: root/openttd.c
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
commit2cd81020402652dae2e5ac267f29b1b6c5bdc4db (patch)
treef8c3f8dcff586e93afd2be61c0b7e53a3bc3c37f /openttd.c
parenta798d0a95cad91f8f6bd0016760594f2a960281b (diff)
downloadopenttd-2cd81020402652dae2e5ac267f29b1b6c5bdc4db.tar.xz
(svn r5487) -Fix: [#8] UDP sockets were used even if network-availability was set to false (tokay)
Diffstat (limited to 'openttd.c')
-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