summaryrefslogtreecommitdiff
path: root/src/ai/ai_core.cpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2009-01-15 18:15:12 +0000
committertruebrain <truebrain@openttd.org>2009-01-15 18:15:12 +0000
commite436f0218f1dbcc62e39889d360bf620b2056dcd (patch)
treefe14c05c0a3bd9c3c4546610ab53a830dc6bab9b /src/ai/ai_core.cpp
parent31a586dc6f5169ee0be89c66662948a5c555c497 (diff)
downloadopenttd-e436f0218f1dbcc62e39889d360bf620b2056dcd.tar.xz
(svn r15095) -Add [NoAI]: allow AI Libraries to be in .tar files (subdir required, as with AIs
-Add [NoAI]: allow multiple versions of the same AI co-exist -Change [NoAI]: updated the whole method of AI (Library) finding and loading; it is now much more clear and transparent -Change [NoAI]: the name of the AI is now the name used by CreateInstance() -Change [NoAI]: make the AI finder a bit more clever, mostly related to version finding
Diffstat (limited to 'src/ai/ai_core.cpp')
-rw-r--r--src/ai/ai_core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/ai_core.cpp b/src/ai/ai_core.cpp
index ffb2ad04b..406b2ecbd 100644
--- a/src/ai/ai_core.cpp
+++ b/src/ai/ai_core.cpp
@@ -40,7 +40,7 @@
info = AI::ai_scanner->SelectRandomAI();
assert(info != NULL);
/* Load default data and store the name in the settings */
- AIConfig::GetConfig(company)->ChangeAI(info->GetDirName());
+ AIConfig::GetConfig(company)->ChangeAI(info->GetInstanceName());
}
_current_company = company;