diff options
author | smatz <smatz@openttd.org> | 2009-08-27 13:47:03 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-08-27 13:47:03 +0000 |
commit | 072ce4bb17dcb02e8e832f46e4fcadfd7c4be944 (patch) | |
tree | a7db2661ae804f06e41ab9b237e7a9e2558be39b /src/ai/api/ai_town.hpp | |
parent | 100ae8efcc592ec44f0cc161e0045fb84b67c45e (diff) | |
download | openttd-072ce4bb17dcb02e8e832f46e4fcadfd7c4be944.tar.xz |
(svn r17293) -Fix [NoAI]: AITown::GetLastMonthTransported didn't work as documented at all, make it return what AITown::GetLastMonthProduction did
-Change [NoAI]: mark AITown::GetMaxProduction as deprecated, AITown::GetLastMonthProduction returns now the value GetMaxProduction did
Diffstat (limited to 'src/ai/api/ai_town.hpp')
-rw-r--r-- | src/ai/api/ai_town.hpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/ai/api/ai_town.hpp b/src/ai/api/ai_town.hpp index f0df98c2a..dca8a36e9 100644 --- a/src/ai/api/ai_town.hpp +++ b/src/ai/api/ai_town.hpp @@ -176,18 +176,6 @@ public: static int32 GetLastMonthTransported(TownID town_id, CargoID cargo_id); /** - * Get the maximum production of the given cargo at a town. - * @param town_id The index of the town. - * @param cargo_id The index of the cargo. - * @pre IsValidTown(town_id). - * @pre AICargo::IsValidCargo(cargo_id). - * @pre AICargo::GetTownEffect(cargo_id) == TE_PASSENGERS || AICargo::GetTownEffect(cargo_id) == TE_MAIL. - * @return The maximum production of the given cargo for this town. - * @post Return value is always non-negative. - */ - static int32 GetMaxProduction(TownID town_id, CargoID cargo_id); - - /** * Get the manhattan distance from the tile to the AITown::GetLocation() * of the town. * @param town_id The town to get the distance to. |