(svn r10545) [NoAI] -Fix: GetProduction doesn't return a tile, but a value (tnx glx) noai
authortruelight
Fri, 13 Jul 2007 14:44:31 +0000
branchnoai
changeset 9650 7e5e1a7ecbff
parent 9649 bc8c06513f5b
child 9651 6e2860c67455
(svn r10545) [NoAI] -Fix: GetProduction doesn't return a tile, but a value (tnx glx)
src/ai/api/ai_industry.cpp
src/ai/api/ai_industry.hpp
--- 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.