Codechange: remove GetAcceptanceAroundTiles always_accepted out parameter (#15295)

Return multiple values as std::pair instead of using pointers for out parameters.
This commit is contained in:
Peter Nelson
2026-02-17 19:14:54 +00:00
committed by GitHub
parent e33d53e37e
commit 7c9f2c71f4
8 changed files with 30 additions and 18 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ int DrawStationCoverageAreaText(const Rect &r, StationCoverageType sct, int rad,
if (supplies) {
cargoes = GetProductionAroundTiles(tile, _thd.size.x / TILE_SIZE, _thd.size.y / TILE_SIZE, rad);
} else {
cargoes = GetAcceptanceAroundTiles(tile, _thd.size.x / TILE_SIZE, _thd.size.y / TILE_SIZE, rad);
cargoes = GetAcceptanceAroundTiles(tile, _thd.size.x / TILE_SIZE, _thd.size.y / TILE_SIZE, rad).first;
}
/* Convert cargo counts to a set of cargo bits, and draw the result. */