(svn r20623) -Codechange: unify the storing of animation related information
This commit is contained in:
@@ -533,7 +533,7 @@ static void AnimateTile_Industry(TileIndex tile)
|
||||
{
|
||||
IndustryGfx gfx = GetIndustryGfx(tile);
|
||||
|
||||
if (GetIndustryTileSpec(gfx)->animation_info != 0xFFFF) {
|
||||
if (GetIndustryTileSpec(gfx)->animation.status != ANIM_STATUS_NO_ANIMATION) {
|
||||
AnimateNewIndustryTile(tile);
|
||||
return;
|
||||
}
|
||||
@@ -1667,7 +1667,7 @@ static void DoCreateNewIndustry(Industry *i, TileIndex tile, IndustryType type,
|
||||
/* 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);
|
||||
if (its->animation.status != ANIM_STATUS_NO_ANIMATION) AddAnimatedTile(cur_tile);
|
||||
}
|
||||
} while ((++it)->ti.x != -0x80);
|
||||
|
||||
|
Reference in New Issue
Block a user