mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r11876) -Fix: Start industry tile animation also for overridden industry tiles. (Will only apply to new games or newly build industries.)
This commit is contained in:
parent
a09b0e21e4
commit
9a9a1dcb6c
@ -1524,11 +1524,11 @@ static void DoCreateNewIndustry(Industry *i, TileIndex tile, int type, const Ind
|
||||
SetIndustryConstructionCounter(cur_tile, 3);
|
||||
SetIndustryConstructionStage(cur_tile, 2);
|
||||
}
|
||||
if (it->gfx >= NEW_INDUSTRYTILEOFFSET) {
|
||||
/* New industry */
|
||||
const IndustryTileSpec *its = GetIndustryTileSpec(it->gfx);
|
||||
if (its->animation_info != 0xFFFF) AddAnimatedTile(cur_tile);
|
||||
}
|
||||
|
||||
/* it->gfx is stored in the map. But the translated ID cur_gfx is the interesting one */
|
||||
IndustryGfx cur_gfx = GetTranslatedIndustryTileID(it->gfx);
|
||||
const IndustryTileSpec *its = GetIndustryTileSpec(cur_gfx);
|
||||
if (its->animation_info != 0xFFFF) AddAnimatedTile(cur_tile);
|
||||
}
|
||||
} while ((++it)->ti.x != -0x80);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user