summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_log.hpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-02-14 20:03:06 +0000
committeryexo <yexo@openttd.org>2009-02-14 20:03:06 +0000
commit37819fc8c59f7eb3e38e1831b2db6db497e194e6 (patch)
treed02c8c1864f2e3ddd413d805229eafd85198a67a /src/ai/api/ai_log.hpp
parent84deeecc5b21584b7aee023bb820671683cd7ef1 (diff)
downloadopenttd-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_log.hpp')
-rw-r--r--src/ai/api/ai_log.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ai/api/ai_log.hpp b/src/ai/api/ai_log.hpp
index 7fd1cdb64..da9eaeb46 100644
--- a/src/ai/api/ai_log.hpp
+++ b/src/ai/api/ai_log.hpp
@@ -18,6 +18,7 @@ class AILog : public AIObject {
public:
static const char *GetClassName() { return "AILog"; }
+#ifndef EXPORT_SKIP
/**
* Log levels; The value is also feed to DEBUG() lvl.
* This has no use for you, as AI writer.
@@ -41,6 +42,7 @@ public:
int pos; //!< Current position in lines.
int used; //!< Total amount of used log-lines.
};
+#endif /* EXPORT_SKIP */
/**
* Print an Info message to the logs.
@@ -60,11 +62,13 @@ public:
*/
static void Error(const char *message);
+#ifndef EXPORT_SKIP
/**
* Free the log pointer.
* @note DO NOT CALL YOURSELF; leave it to the internal AI programming.
*/
static void FreeLogPointer();
+#endif /* EXPORT_SKIP */
private:
/**