diff options
author | yexo <yexo@openttd.org> | 2009-02-14 21:05:57 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-02-14 21:05:57 +0000 |
commit | 7fdde2fec0f3038ef0c85218ba55ed83f082a8c1 (patch) | |
tree | 3e134b60b9b08ae1298b017ba85f702d15a7b5ad /src/ai/api/ai_industry.hpp | |
parent | 92fc2e692ca0826729bdb39b967142aa1534c241 (diff) | |
download | openttd-7fdde2fec0f3038ef0c85218ba55ed83f082a8c1.tar.xz |
(svn r15483) -Change [API CHANGE]: Remove AIIndustry::GetProduction, use AIIndustry::GetLastMonthProduction instead.
Diffstat (limited to 'src/ai/api/ai_industry.hpp')
-rw-r--r-- | src/ai/api/ai_industry.hpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/ai/api/ai_industry.hpp b/src/ai/api/ai_industry.hpp index 471df937a..11d3dbc43 100644 --- a/src/ai/api/ai_industry.hpp +++ b/src/ai/api/ai_industry.hpp @@ -46,21 +46,6 @@ public: static char *GetName(IndustryID industry_id); /** - * Gets the production of a cargo of the industry. - * @warning This function does not neccessarily return useful values for newindustries. - * An industry produces at least the returned amount per month, - * but the function can also return 0, when the industry produces lots of cargo. - * GetLastMonthProduction() is more robust. - * @param industry_id The index of the industry. - * @param cargo_id The index of the cargo. - * @pre IsValidIndustry(industry_id). - * @pre AICargo::IsValidCargo(cargo_id). - * @return The production of the cargo for this industry, or -1 if - * this industry doesn't produce this cargo. - */ - static int32 GetProduction(IndustryID industry_id, CargoID cargo_id); - - /** * See if an industry accepts a certain cargo. * @param industry_id The index of the industry. * @param cargo_id The index of the cargo. |