summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-30 06:20:14 +0000
committerrubidium <rubidium@openttd.org>2011-11-30 06:20:14 +0000
commit582601b2f7797cdbee227d4ad7834128ff04bf73 (patch)
tree13c8646ba1c79a244b26e3ed5b5d7004c33c9877 /src
parent160bfd885132212a818db8221f9c9a67b5ec4caa (diff)
downloadopenttd-582601b2f7797cdbee227d4ad7834128ff04bf73.tar.xz
(svn r23377) -Fix: compilation failure when networking is disabled
Diffstat (limited to 'src')
-rw-r--r--src/ai/ai_core.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ai/ai_core.cpp b/src/ai/ai_core.cpp
index b314753d1..0b02170a6 100644
--- a/src/ai/ai_core.cpp
+++ b/src/ai/ai_core.cpp
@@ -335,6 +335,8 @@
SetWindowDirty(WC_AI_SETTINGS, 0);
}
+#if defined(ENABLE_NETWORK)
+
/**
* Check whether we have an AI (library) with the exact characteristics as ci.
* @param ci the characteristics to search on (shortname and md5sum)
@@ -350,3 +352,5 @@
{
return AI::scanner_library->HasScript(ci, md5sum);
}
+
+#endif /* defined(ENABLE_NETWORK) */