diff options
author | yexo <yexo@openttd.org> | 2010-01-02 15:52:29 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-01-02 15:52:29 +0000 |
commit | fe67e85700988303c6e0148fa6212bf3904c8fca (patch) | |
tree | 84c8f9073611d231b11fa755b46c051ccc587ade /src/ai/api/ai_vehicle.hpp | |
parent | ea75e7da60300bd0b1913a1a19ea554da21a592c (diff) | |
download | openttd-fe67e85700988303c6e0148fa6212bf3904c8fca.tar.xz |
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
-Change: AIEngine::IsValidEngine will now also return true when you have at least one vehicle of that type even if you can't build it anymore.
Diffstat (limited to 'src/ai/api/ai_vehicle.hpp')
-rw-r--r-- | src/ai/api/ai_vehicle.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_vehicle.hpp b/src/ai/api/ai_vehicle.hpp index 4041287a7..049ee8ade 100644 --- a/src/ai/api/ai_vehicle.hpp +++ b/src/ai/api/ai_vehicle.hpp @@ -300,7 +300,7 @@ public: * @param engine_id The engine to use for this vehicle. * @pre The tile at depot has a depot that can build the engine and * is owned by you. - * @pre IsValidEngine(engine_id). + * @pre AIEngine::IsBuildable(engine_id). * @exception AIVehicle::ERR_VEHICLE_TOO_MANY * @exception AIVehicle::ERR_VEHICLE_BUILD_DISABLED * @exception AIVehicle::ERR_VEHICLE_WRONG_DEPOT |