(svn r10545) [NoAI] -Fix: GetProduction doesn't return a tile, but a value (tnx glx)
--- a/src/ai/api/ai_industry.cpp Fri Jul 13 14:14:26 2007 +0000
+++ b/src/ai/api/ai_industry.cpp Fri Jul 13 14:44:31 2007 +0000
@@ -36,7 +36,7 @@
return industry_name;
}
-/* static */ TileIndex AIIndustry::GetProduction(IndustryID industry_id, CargoID cargo_id)
+/* static */ int32 AIIndustry::GetProduction(IndustryID industry_id, CargoID cargo_id)
{
if (!AIIndustry::IsValidIndustry(industry_id)) return -1;
if (!AICargo::IsValidCargo(cargo_id)) return -1;
--- a/src/ai/api/ai_industry.hpp Fri Jul 13 14:14:26 2007 +0000
+++ b/src/ai/api/ai_industry.hpp Fri Jul 13 14:44:31 2007 +0000
@@ -57,7 +57,7 @@
* @pre cargo_id has to be valid (use IsValidCargo()).
* @return the production of the cargo for this industry.
*/
- static TileIndex GetProduction(IndustryID industry_id, CargoID cargo_id);
+ static int32 GetProduction(IndustryID industry_id, CargoID cargo_id);
/**
* Gets the location of the industry.