(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

@@ -3035,7 +3035,7 @@ void FindStationsAroundTiles(TileIndex tile, int w_prod, int h_prod, StationList
const StationList *StationFinder::GetStations()
{
if (this->tile != INVALID_TILE) {
FindStationsAroundTiles(this->tile, this->x_extent, this->y_extent, &this->stations);
FindStationsAroundTiles(this->tile, this->w, this->h, &this->stations);
this->tile = INVALID_TILE;
}
return &this->stations;