File diff r12968:8f3f0d6af8a6 → r12969:5e7f0342aa53
src/company_base.h
Show inline comments
 
@@ -100,12 +100,14 @@ struct Company : CompanyPool::PoolItem<&
 
	}
 

	
 
	static FORCEINLINE bool IsHumanID(size_t index)
 
	{
 
		return !Company::Get(index)->is_ai;
 
	}
 

	
 
	static void PostDestructor(size_t index);
 
};
 

	
 
#define FOR_ALL_COMPANIES_FROM(var, start) FOR_ALL_ITEMS_FROM(Company, company_index, var, start)
 
#define FOR_ALL_COMPANIES(var) FOR_ALL_COMPANIES_FROM(var, 0)
 

	
 
Money CalculateCompanyValue(const Company *c);