summaryrefslogtreecommitdiff
path: root/src/ai/ai_scanner.cpp
diff options
context:
space:
mode:
authorYexo <yexo@openttd.org>2009-02-06 00:25:37 +0000
committerYexo <yexo@openttd.org>2009-02-06 00:25:37 +0000
commitcb3784d8b1a8aa20eab38cf28ee7a2649039ed4f (patch)
treebc4a66f71ecd553a2fcef1f5e1937be2943df355 /src/ai/ai_scanner.cpp
parent8f270af1242fc9e1746bfa3f4a7e8a70fdf6340f (diff)
downloadopenttd-cb3784d8b1a8aa20eab38cf28ee7a2649039ed4f.tar.xz
(svn r15366) -Add [NoAI]: Add AddLabels() where you can define labels for the values of the settings in info.nut
Diffstat (limited to 'src/ai/ai_scanner.cpp')
-rw-r--r--src/ai/ai_scanner.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ai/ai_scanner.cpp b/src/ai/ai_scanner.cpp
index e9174504f..734058774 100644
--- a/src/ai/ai_scanner.cpp
+++ b/src/ai/ai_scanner.cpp
@@ -138,6 +138,7 @@ AIScanner::AIScanner() :
SQAIInfo.PreRegister(engine);
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_RANDOM, "AICONFIG_RANDOM");
SQAIInfo.DefSQConst(engine, AICONFIG_BOOLEAN, "AICONFIG_BOOLEAN");
SQAIInfo.PostRegister(engine);