diff options
author | yexo <yexo@openttd.org> | 2011-11-08 21:48:00 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2011-11-08 21:48:00 +0000 |
commit | a256bd71e472fb6bd6ad91f464ee1d1a18a1823f (patch) | |
tree | ef338211b627ae164a9dd5bb705cf509123aaf88 /src/ai/ai_scanner.cpp | |
parent | 5c838ff1c312c240e44bb7da95e5450bcfeaeff6 (diff) | |
download | openttd-a256bd71e472fb6bd6ad91f464ee1d1a18a1823f.tar.xz |
(svn r23169) -Feature: [NoAI] AICONFIG_AI_DEVELOPER flags to hide AI settings unless gui.ai_developer_tools is enabled (Zuu)
Diffstat (limited to 'src/ai/ai_scanner.cpp')
-rw-r--r-- | src/ai/ai_scanner.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ai/ai_scanner.cpp b/src/ai/ai_scanner.cpp index df989630f..9e752c010 100644 --- a/src/ai/ai_scanner.cpp +++ b/src/ai/ai_scanner.cpp @@ -42,6 +42,7 @@ AIScanner::AIScanner() : SQAIInfo.DefSQConst(engine, AICONFIG_RANDOM, "AICONFIG_RANDOM"); SQAIInfo.DefSQConst(engine, AICONFIG_BOOLEAN, "AICONFIG_BOOLEAN"); SQAIInfo.DefSQConst(engine, AICONFIG_INGAME, "AICONFIG_INGAME"); + SQAIInfo.DefSQConst(engine, AICONFIG_AI_DEVELOPER, "AICONFIG_AI_DEVELOPER"); SQAIInfo.PostRegister(engine); this->engine->AddMethod("RegisterAI", &AIInfo::Constructor, 2, "tx"); this->engine->AddMethod("RegisterDummyAI", &AIInfo::DummyConstructor, 2, "tx"); |