|
@@ -131,13 +131,13 @@
|
|
|
{
|
|
|
if (!IsValidIndustry(industry_id)) return -1;
|
|
|
|
|
|
Industry *ind = ::Industry::Get(industry_id);
|
|
|
StationList stations;
|
|
|
::FindStationsAroundTiles(ind->location, &stations);
|
|
|
return (int32)stations.Length();
|
|
|
return (int32)stations.size();
|
|
|
}
|
|
|
|
|
|
/* static */ int32 ScriptIndustry::GetDistanceManhattanToTile(IndustryID industry_id, TileIndex tile)
|
|
|
{
|
|
|
if (!IsValidIndustry(industry_id)) return -1;
|
|
|
|