summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-08-21 13:10:19 +0000
committerrubidium <rubidium@openttd.org>2011-08-21 13:10:19 +0000
commit23e57203927e73d826aeae07332d27140651b098 (patch)
treeaf9c3636d3c1acf1b4c0db0748c2cb58f8b586ba /src
parentd89ff5b27861a7cb53efd5fef7636f3dfab1ec68 (diff)
downloadopenttd-23e57203927e73d826aeae07332d27140651b098.tar.xz
(svn r22799) -Fix (r22792): compile failure when there is no networking support
Diffstat (limited to 'src')
-rw-r--r--src/openttd.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index e078c7da0..c7fc053f2 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -718,7 +718,11 @@ int ttd_main(int argc, char *argv[])
CheckForMissingGlyphsInLoadedLanguagePack();
+#if defined(ENABLE_NETWORK)
ScanNewGRFFiles(new AfterNewGRFScan(network ? network_conn : NULL, join_server_password, join_company_password));
+#else
+ ScanNewGRFFiles(new AfterNewGRFScan(NULL, NULL, NULL));
+#endif
_video_driver->MainLoop();