(svn r14604) -Codechange: Simplify a function and rename it, and fix some comments.

This commit is contained in:
frosch
2008-11-22 15:48:43 +00:00
parent 6e93e611c8
commit b759ccd032
3 changed files with 22 additions and 34 deletions

View File

@@ -1966,7 +1966,7 @@ static void CanCargoServiceIndustry(CargoID cargo, Industry *ind, bool *c_accept
int WhoCanServiceIndustry(Industry* ind)
{
/* Find all stations within reach of the industry */
StationSet stations = FindStationsAroundIndustryTile(ind->xy, ind->width, ind->height);
StationSet stations = FindStationsAroundTiles(ind->xy, ind->width, ind->height);
if (stations.size() == 0) return 0; // No stations found at all => nobody services