diff options
author | yexo <yexo@openttd.org> | 2010-01-29 00:03:31 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-01-29 00:03:31 +0000 |
commit | fae34ee719a90dc7b7d68b54b97fb5485387b356 (patch) | |
tree | 2f584e6bf3765b262d9ade84f32bcd222b5ca015 /src/ai/ai_core.cpp | |
parent | d75b9f1642f24dd3336437d818b41c2a6d295905 (diff) | |
download | openttd-fae34ee719a90dc7b7d68b54b97fb5485387b356.tar.xz |
(svn r18944) -Change [FS#3232]: use the highest version of an AI that can load the AI data from a savegame instead of the exact same version
Diffstat (limited to 'src/ai/ai_core.cpp')
-rw-r--r-- | src/ai/ai_core.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ai/ai_core.cpp b/src/ai/ai_core.cpp index 9c730d867..cc6ef746c 100644 --- a/src/ai/ai_core.cpp +++ b/src/ai/ai_core.cpp @@ -44,7 +44,7 @@ info = AI::ai_scanner->SelectRandomAI(); assert(info != NULL); /* Load default data and store the name in the settings */ - config->ChangeAI(info->GetName(), -1, true); + config->ChangeAI(info->GetName(), -1, false, true); } _current_company = company; @@ -288,9 +288,9 @@ void CcAI(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p2) return AI::ai_scanner->GetUniqueAIInfoList(); } -/* static */ AIInfo *AI::FindInfo(const char *name, int version) +/* static */ AIInfo *AI::FindInfo(const char *name, int version, bool force_exact_match) { - return AI::ai_scanner->FindInfo(name, version); + return AI::ai_scanner->FindInfo(name, version, force_exact_match); } /* static */ bool AI::ImportLibrary(const char *library, const char *class_name, int version, HSQUIRRELVM vm) |