Mercurial > hg > openttd
changeset 18533:d2d7996eff1d draft
(svn r23377) -Fix: compilation failure when networking is disabled
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 30 Nov 2011 06:20:14 +0000 |
parents | 9c4e0f3231a7 |
children | 3110612196ee |
files | src/ai/ai_core.cpp |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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) */