From e2e26190d55fe5a7e053791ac9bce095b303be10 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 26 Aug 2010 15:31:40 +0000 Subject: (svn r20623) -Codechange: unify the storing of animation related information --- src/industry_cmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/industry_cmd.cpp') diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index b684531a3..81d84b414 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -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); -- cgit v1.2.3-54-g00ecf