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
+2 -1
View File
@@ -143,7 +143,8 @@ public:
td.owner_type[0] = STR_LAND_AREA_INFORMATION_OWNER; // At least one owner is displayed, though it might be "N/A".
CargoArray acceptance{};
AddAcceptedCargo(tile, acceptance, nullptr);
CargoTypes always_accepted{};
AddAcceptedCargo(tile, acceptance, always_accepted);
GetTileDesc(tile, td);
this->landinfo_data.clear();