diff options
author | Yexo <Yexo@openttd.org> | 2009-02-06 00:25:37 +0000 |
---|---|---|
committer | Yexo <Yexo@openttd.org> | 2009-02-06 00:25:37 +0000 |
commit | 72643f20908255a988f5cf92cb3e3a92984eb3b2 (patch) | |
tree | bc4a66f71ecd553a2fcef1f5e1937be2943df355 /src/ai/ai_scanner.cpp | |
parent | 87f34012bab36d21c2dff3fde75b930d596e8b0e (diff) | |
download | openttd-72643f20908255a988f5cf92cb3e3a92984eb3b2.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.cpp | 1 |
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); |