mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-25 16:35:59 +00:00
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:
+2
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user