(svn r15481) -Fix [NoAI]: Make sure AIs can't call functions they shouldn't call.

This commit is contained in:
yexo
2009-02-14 20:03:06 +00:00
parent 0dcf301d6d
commit 8e75f5244c
9 changed files with 27 additions and 30 deletions

View File

@@ -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;