Changeset - r6825:73309a2be0fb
[Not reviewed]
master
0 1 0
belugas - 17 years ago 2007-06-08 15:59:03
belugas@openttd.org
(svn r10064) -Fix(r10063): compile again, when changing stuff. DOn't trust first run
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/industry.h
Show inline comments
 
@@ -201,28 +201,28 @@ static inline bool IsValidIndustryID(Ind
 
static inline IndustryID GetMaxIndustryIndex()
 
{
 
	/* TODO - This isn't the real content of the function, but
 
	 *  with the new pool-system this will be replaced with one that
 
	 *  _really_ returns the highest index. Now it just returns
 
	 *  the next safe value we are sure about everything is below.
 
	 */
 
	return GetIndustryPoolSize() - 1;
 
}
 

	
 
static inline uint GetNumIndustries()
 
{
 
	extern int _total_industries;  // general counter
 
	return _total_industries;
 
}
 

	
 
extern int _total_industries;                      // general counter
 
extern uint16 _industry_counts[NUM_INDUSTRYTYPES]; // Number of industries per type ingame
 

	
 
/** Increment the count of industries for this type
 
 * @param type IndustryType to increment
 
 * @pre type < INVALID_INDUSTRYTYPE */
 
static inline void IncIndustryTypeCount(IndustryType type)
 
{
 
	assert(type < INVALID_INDUSTRYTYPE);
 
	_industry_counts[type]++;
 
}
 

	
 
/** Decrement the count of industries for this type
0 comments (0 inline, 0 general)