Codechange: Pass TileDesc by reference.

This commit is contained in:
Peter Nelson
2025-02-23 13:08:20 +00:00
committed by Peter Nelson
parent 012daaa3d9
commit 96f260e718
14 changed files with 121 additions and 121 deletions

View File

@@ -472,20 +472,20 @@ static void AddAcceptedCargo_Industry(TileIndex tile, CargoArray &acceptance, Ca
}
}
static void GetTileDesc_Industry(TileIndex tile, TileDesc *td)
static void GetTileDesc_Industry(TileIndex tile, TileDesc &td)
{
const Industry *i = Industry::GetByTile(tile);
const IndustrySpec *is = GetIndustrySpec(i->type);
td->owner[0] = i->owner;
td->str = is->name;
td.owner[0] = i->owner;
td.str = is->name;
if (!IsIndustryCompleted(tile)) {
td->dparam = td->str;
td->str = STR_LAI_TOWN_INDUSTRY_DESCRIPTION_UNDER_CONSTRUCTION;
td.dparam = td.str;
td.str = STR_LAI_TOWN_INDUSTRY_DESCRIPTION_UNDER_CONSTRUCTION;
}
if (is->grf_prop.HasGrfFile()) {
td->grf = GetGRFConfig(is->grf_prop.grfid)->GetName();
td.grf = GetGRFConfig(is->grf_prop.grfid)->GetName();
}
}