Use row-aligned block data type in BitmapTileArea

Use bit operations to reduce looping over individual bits where possible
This commit is contained in:
Jonathan G Rennison
2024-06-21 02:21:59 +01:00
parent 68b16f6741
commit d4819ad184
3 changed files with 122 additions and 21 deletions

View File

@@ -544,7 +544,7 @@ void Station::RecomputeCatchment(bool no_clear_nearby_lists)
/* This tile sub-loop doesn't need to test any tiles, they are simply added to the catchment set. */
TileArea ta2 = TileArea(tile, 1, 1).Expand(r);
for (TileIndex tile2 : ta2) this->catchment_tiles.SetTile(tile2);
this->catchment_tiles.SetTiles(ta2);
}
/* Search catchment tiles for towns and industries */