From 3a13b75e37b5642de3c1e89cf6ab3bf860b76375 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 17 Jan 2009 16:53:32 +0000 Subject: (svn r15126) -Feature: downloading content from a central server (content.openttd.org) where authors can upload they NewGRFS/AI etc. This should make joining servers that use only NewGRFs that are distributed via this system easier as the players can download the NewGRFs from in the game. It should also make it easier to see whether there are updates for NewGRFs and make the necessary updates. --- src/ai/ai.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ai/ai.hpp') diff --git a/src/ai/ai.hpp b/src/ai/ai.hpp index c1a700f75..96dc93317 100644 --- a/src/ai/ai.hpp +++ b/src/ai/ai.hpp @@ -111,7 +111,9 @@ public: static AIInfo *FindInfo(const char *name, int version); static bool ImportLibrary(const char *library, const char *class_name, int version, HSQUIRRELVM vm); static void Rescan(); - +#if defined(ENABLE_NETWORK) + static bool HasAI(const struct ContentInfo *ci, bool md5sum); +#endif private: static uint frame_counter; static class AIScanner *ai_scanner; -- cgit v1.2.3-54-g00ecf