mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-25 08:22:17 +00:00
Codefix: Avoid using override keyword as member name.
Rename `GRFFileProps` `override` member to `override_id`.
This commit is contained in:
committed by
Peter Nelson
parent
294f826364
commit
91ab7f10cd
@@ -66,11 +66,11 @@ uint32_t GetIndustryIDAtOffset(TileIndex tile, const Industry *i, uint32_t cur_g
|
||||
|
||||
if (gfx < NEW_INDUSTRYTILEOFFSET) { // Does it belongs to an old type?
|
||||
/* It is an old tile. We have to see if it's been overridden */
|
||||
if (indtsp->grf_prop.override == INVALID_INDUSTRYTILE) { // has it been overridden?
|
||||
if (indtsp->grf_prop.override_id == INVALID_INDUSTRYTILE) { // has it been overridden?
|
||||
return 0xFF << 8 | gfx; // no. Tag FF + the gfx id of that tile
|
||||
}
|
||||
/* Overridden */
|
||||
const IndustryTileSpec *tile_ovr = GetIndustryTileSpec(indtsp->grf_prop.override);
|
||||
const IndustryTileSpec *tile_ovr = GetIndustryTileSpec(indtsp->grf_prop.override_id);
|
||||
|
||||
if (tile_ovr->grf_prop.grfid == cur_grfid) {
|
||||
return tile_ovr->grf_prop.local_id; // same grf file
|
||||
|
||||
Reference in New Issue
Block a user