diff options
author | frosch <frosch@openttd.org> | 2010-01-27 20:51:11 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-01-27 20:51:11 +0000 |
commit | 7b237ee607ed12814e3a38f99d3dda33c34987ff (patch) | |
tree | cba2ad908448eb229040b916707fe3939fcdbfc9 /src/ai/api/ai_group.hpp | |
parent | ec9ac775bfe760b9b9f000cdb573796c3c8b8974 (diff) | |
download | openttd-7b237ee607ed12814e3a38f99d3dda33c34987ff.tar.xz |
(svn r18930) -Fix: [NoAI] Autoreplace is also valid for the default group.
Diffstat (limited to 'src/ai/api/ai_group.hpp')
-rw-r--r-- | src/ai/api/ai_group.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ai/api/ai_group.hpp b/src/ai/api/ai_group.hpp index 422f2962a..fee341e3f 100644 --- a/src/ai/api/ai_group.hpp +++ b/src/ai/api/ai_group.hpp @@ -148,7 +148,7 @@ public: * vehicles from all groups that haven't set autoreplace protection. * @param engine_id_old The engine id to start replacing. * @param engine_id_new The engine id to replace with. - * @pre IsValidGroup(group_id) || group_id == GROUP_ALL. + * @pre IsValidGroup(group_id) || group_id == GROUP_DEFAULT || group_id == GROUP_ALL. * @pre AIEngine.IsBuildable(engine_id_new). * @note To stop autoreplacing engine_id_old, call StopAutoReplace(group_id, engine_id_old). */ @@ -158,7 +158,7 @@ public: * Get the EngineID the given EngineID is replaced with. * @param group_id The group to get the replacement from. * @param engine_id The engine that is being replaced. - * @pre IsValidGroup(group_id) || group_id == GROUP_ALL. + * @pre IsValidGroup(group_id) || group_id == GROUP_DEFAULT || group_id == GROUP_ALL. * @return The EngineID that is replacing engine_id or an invalid EngineID * in case engine_id is not begin replaced. */ @@ -168,7 +168,7 @@ public: * Stop replacing a certain engine in the specified group. * @param group_id The group to stop replacing the engine in. * @param engine_id The engine id to stop replacing with another engine. - * @pre IsValidGroup(group_id) || group_id == GROUP_ALL. + * @pre IsValidGroup(group_id) || group_id == GROUP_DEFAULT || group_id == GROUP_ALL. * @return True if and if the replacing was succesfully stopped. */ static bool StopAutoReplace(GroupID group_id, EngineID engine_id); |