(svn r18715) -Codechange: make StationFinder a subclass of TileArea

This commit is contained in:
rubidium
2010-01-04 18:12:10 +00:00
parent 8b88bb0c9b
commit 31b325baaf
5 changed files with 7 additions and 12 deletions

View File

@@ -509,7 +509,7 @@ static void TransportIndustryGoods(TileIndex tile)
const IndustrySpec *indspec = GetIndustrySpec(i->type);
bool moved_cargo = false;
StationFinder stations(i->xy, i->width, i->height);
StationFinder stations(TileArea(i->xy, i->width, i->height));
for (uint j = 0; j < lengthof(i->produced_cargo_waiting); j++) {
uint cw = min(i->produced_cargo_waiting[j], 255);