(svn r16379) -Codechange: remove GetNumTowns(), GetNumIndustries() and GetActiveCompanyCount(), use PoolItem::GetNumItems() instead
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
/* static */ int32 AIIndustry::GetIndustryCount()
|
||||
{
|
||||
return ::GetNumIndustries();
|
||||
return (int32)::Industry::GetNumItems();
|
||||
}
|
||||
|
||||
/* static */ bool AIIndustry::IsValidIndustry(IndustryID industry_id)
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
/* static */ SignID AISign::GetMaxSignID()
|
||||
{
|
||||
return ::Sign::GetPoolSize() - 1;
|
||||
return (SignID)::Sign::GetNumItems();
|
||||
}
|
||||
|
||||
/* static */ bool AISign::IsValidSign(SignID sign_id)
|
||||
|
@@ -16,7 +16,7 @@
|
||||
|
||||
/* static */ int32 AITown::GetTownCount()
|
||||
{
|
||||
return ::GetNumTowns();
|
||||
return (int32)::Town::GetNumItems();
|
||||
}
|
||||
|
||||
/* static */ bool AITown::IsValidTown(TownID town_id)
|
||||
|
Reference in New Issue
Block a user