summaryrefslogtreecommitdiff
path: root/src/ai/ai_config.hpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-01-29 00:03:31 +0000
committeryexo <yexo@openttd.org>2010-01-29 00:03:31 +0000
commitfae34ee719a90dc7b7d68b54b97fb5485387b356 (patch)
tree2f584e6bf3765b262d9ade84f32bcd222b5ca015 /src/ai/ai_config.hpp
parentd75b9f1642f24dd3336437d818b41c2a6d295905 (diff)
downloadopenttd-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_config.hpp')
-rw-r--r--src/ai/ai_config.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ai/ai_config.hpp b/src/ai/ai_config.hpp
index 302a9942d..3eb9d78d2 100644
--- a/src/ai/ai_config.hpp
+++ b/src/ai/ai_config.hpp
@@ -36,9 +36,11 @@ public:
* Set another AI to be loaded in this slot.
* @param name The name of the AI.
* @param version The version of the AI to load, or -1 of latest.
+ * @param force_exact_match If true try to find the exact same version
+ * as specified. If false any compatible version is ok.
* @param is_random Is the AI chosen randomly?
*/
- void ChangeAI(const char *name, int version = -1, bool is_random = false);
+ void ChangeAI(const char *name, int version = -1, bool force_exact_match = false, bool is_random = false);
/**
* When ever the AI Scanner is reloaded, all infos become invalid. This