diff options
author | yexo <yexo@openttd.org> | 2009-02-14 20:03:06 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-02-14 20:03:06 +0000 |
commit | 37819fc8c59f7eb3e38e1831b2db6db497e194e6 (patch) | |
tree | d02c8c1864f2e3ddd413d805229eafd85198a67a /src/ai/api/ai_error.hpp | |
parent | 84deeecc5b21584b7aee023bb820671683cd7ef1 (diff) | |
download | openttd-37819fc8c59f7eb3e38e1831b2db6db497e194e6.tar.xz |
(svn r15481) -Fix [NoAI]: Make sure AIs can't call functions they shouldn't call.
Diffstat (limited to 'src/ai/api/ai_error.hpp')
-rw-r--r-- | src/ai/api/ai_error.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ai/api/ai_error.hpp b/src/ai/api/ai_error.hpp index b9fd572bb..d3e7c9aea 100644 --- a/src/ai/api/ai_error.hpp +++ b/src/ai/api/ai_error.hpp @@ -136,6 +136,7 @@ public: */ static char *GetLastErrorString(); +#ifndef EXPORT_SKIP /** * Get the error based on the OpenTTD StringID. * @note DO NOT INVOKE THIS METHOD YOURSELF! @@ -159,6 +160,7 @@ public: * @param message The string representation of this error message, used for debug purposes. */ static void RegisterErrorMapString(AIErrorType ai_error_msg, const char *message); +#endif /* EXPORT_SKIP */ private: typedef std::map<StringID, AIErrorType> AIErrorMap; |