mirror of https://github.com/OpenTTD/OpenTTD.git
This commit is contained in:
parent
f599108c16
commit
ea74ca0a76
|
@ -152,7 +152,10 @@ ScriptTileList_StationCoverage::ScriptTileList_StationCoverage(StationID station
|
||||||
{
|
{
|
||||||
if (!ScriptStation::IsValidStation(station_id)) return;
|
if (!ScriptStation::IsValidStation(station_id)) return;
|
||||||
|
|
||||||
BitmapTileIterator it(::Station::Get(station_id)->catchment_tiles);
|
const BitmapTileArea &ta = ::Station::Get(station_id)->catchment_tiles;
|
||||||
|
if (ta.tile == INVALID_TILE) return;
|
||||||
|
|
||||||
|
BitmapTileIterator it(ta);
|
||||||
for (TileIndex tile = it; tile != INVALID_TILE; tile = ++it) {
|
for (TileIndex tile = it; tile != INVALID_TILE; tile = ++it) {
|
||||||
this->AddTile(tile);
|
this->AddTile(tile);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue