diff options
author | yexo <yexo@openttd.org> | 2010-01-29 21:38:55 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-01-29 21:38:55 +0000 |
commit | 4c4d1e1bf6c5e6c4678eeb52b263b6119a531fcf (patch) | |
tree | 3ca424f7d3bdded261b7822dbeab519595d69c5c /src/ai/ai_scanner.cpp | |
parent | dc714960e3699144fcd39a13460b0a8f9fd0ca4d (diff) | |
download | openttd-4c4d1e1bf6c5e6c4678eeb52b263b6119a531fcf.tar.xz |
(svn r18953) -Feature: [NoAI] allow editing AI settings while an AI is running
Only settings with the AICONFIG_INGAME flag can be editted in this way
Diffstat (limited to 'src/ai/ai_scanner.cpp')
-rw-r--r-- | src/ai/ai_scanner.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ai/ai_scanner.cpp b/src/ai/ai_scanner.cpp index a974b5fd4..d6c2f7cf8 100644 --- a/src/ai/ai_scanner.cpp +++ b/src/ai/ai_scanner.cpp @@ -39,8 +39,10 @@ AIScanner::AIScanner() : SQAIInfo.AddConstructor<void (AIInfo::*)(), 1>(engine, "x"); SQAIInfo.DefSQAdvancedMethod(this->engine, &AIInfo::AddSetting, "AddSetting"); SQAIInfo.DefSQAdvancedMethod(this->engine, &AIInfo::AddLabels, "AddLabels"); + SQAIInfo.DefSQConst(engine, AICONFIG_NONE, "AICONFIG_NONE"); SQAIInfo.DefSQConst(engine, AICONFIG_RANDOM, "AICONFIG_RANDOM"); SQAIInfo.DefSQConst(engine, AICONFIG_BOOLEAN, "AICONFIG_BOOLEAN"); + SQAIInfo.DefSQConst(engine, AICONFIG_INGAME, "AICONFIG_INGAME"); SQAIInfo.PostRegister(engine); this->engine->AddMethod("RegisterAI", &AIInfo::Constructor, 2, "tx"); this->engine->AddMethod("RegisterDummyAI", &AIInfo::DummyConstructor, 2, "tx"); |