(svn r18716) -Codechange: pass a TileArea to FindStationsAroundTiles

This commit is contained in:
rubidium
2010-01-04 18:16:32 +00:00
parent 31b325baaf
commit 71f2789270
4 changed files with 10 additions and 12 deletions

View File

@@ -2066,7 +2066,7 @@ static int WhoCanServiceIndustry(Industry *ind)
{
/* Find all stations within reach of the industry */
StationList stations;
FindStationsAroundTiles(ind->xy, ind->width, ind->height, &stations);
FindStationsAroundTiles(TileArea(ind->xy, ind->width, ind->height), &stations);
if (stations.Length() == 0) return 0; // No stations found at all => nobody services