From 486e5b4bfeb4916f0a285fb9749ba031fa16c278 Mon Sep 17 00:00:00 2001 From: yexo Date: Sat, 25 Apr 2009 22:57:15 +0000 Subject: (svn r16150) -Fix [NoAI]: Change WAYPOINT_INVALID to 0xFFFF from -1 as that's the value the AIs got (due to casting). Clarify some api documentation. --- src/ai/api/ai_industry.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ai/api/ai_industry.hpp') diff --git a/src/ai/api/ai_industry.hpp b/src/ai/api/ai_industry.hpp index bf93cd466..da27ec920 100644 --- a/src/ai/api/ai_industry.hpp +++ b/src/ai/api/ai_industry.hpp @@ -86,7 +86,9 @@ public: static TileIndex GetLocation(IndustryID industry_id); /** - * Get the number of stations around an industry. + * Get the number of stations around an industry. All stations that can + * service the industry are counted, your own stations but also your + * opponents stations. * @param industry_id The index of the industry. * @pre IsValidIndustry(industry_id). * @return The number of stations around an industry. -- cgit v1.2.3-70-g09d2