From e6543c277600d28164c536ea8ef96dea59b54921 Mon Sep 17 00:00:00 2001 From: truebrain Date: Tue, 13 Jan 2009 12:51:46 +0000 Subject: (svn r15055) -Add [NoAI]: add the AICONFIG_RANDOM and AICONFIG_BOOLEAN consts (Yexo) --- src/ai/ai_scanner.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3-70-g09d2