summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2009-01-13 12:51:46 +0000
committertruebrain <truebrain@openttd.org>2009-01-13 12:51:46 +0000
commit53d28d24b5e959a0ed336de0479089e2be9bac56 (patch)
tree803410f33b352d4efe89316e13bdeba819708692 /src
parent737c187f790e76bcb30f1dbb9d08aadc79d99934 (diff)
downloadopenttd-53d28d24b5e959a0ed336de0479089e2be9bac56.tar.xz
(svn r15055) -Add [NoAI]: add the AICONFIG_RANDOM and AICONFIG_BOOLEAN consts (Yexo)
Diffstat (limited to 'src')
-rw-r--r--src/ai/ai_scanner.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ai/ai_scanner.cpp b/src/ai/ai_scanner.cpp
index 6bcf883e7..de2715c9f 100644
--- a/src/ai/ai_scanner.cpp
+++ b/src/ai/ai_scanner.cpp
@@ -160,6 +160,8 @@ AIScanner::AIScanner()
this->engine->AddClassBegin("AILibrary");
this->engine->AddClassEnd();
this->engine->AddMethod("RegisterLibrary", &AILibrary::Constructor, 2, "tx");
+ this->engine->AddConst("AICONFIG_RANDOM", AICONFIG_RANDOM);
+ this->engine->AddConst("AICONFIG_BOOLEAN", AICONFIG_BOOLEAN);
/* Mark this class as global pointer */
this->engine->SetGlobalPointer(this);