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

This commit is contained in:
rubidium
2010-01-04 18:12:10 +00:00
parent 82a96c3e35
commit e202a26990
5 changed files with 7 additions and 12 deletions

View File

@@ -465,7 +465,7 @@ static void TileLoop_Town(TileIndex tile)
Town *t = Town::GetByTile(tile);
uint32 r = Random();
StationFinder stations(tile, 1, 1);
StationFinder stations(TileArea(tile, 1, 1));
if (HasBit(hs->callback_mask, CBM_HOUSE_PRODUCE_CARGO)) {
for (uint i = 0; i < 256; i++) {