1
0
Fork 0

(svn r11876) -Fix: Start industry tile animation also for overridden industry tiles. (Will only apply to new games or newly build industries.)

release/0.6
frosch 2008-01-16 15:06:48 +00:00
parent beb1b07f5f
commit 5659cbe6fe
1 changed files with 5 additions and 5 deletions

View File

@ -1524,12 +1524,12 @@ static void DoCreateNewIndustry(Industry *i, TileIndex tile, int type, const Ind
SetIndustryConstructionCounter(cur_tile, 3); SetIndustryConstructionCounter(cur_tile, 3);
SetIndustryConstructionStage(cur_tile, 2); SetIndustryConstructionStage(cur_tile, 2);
} }
if (it->gfx >= NEW_INDUSTRYTILEOFFSET) {
/* New industry */ /* it->gfx is stored in the map. But the translated ID cur_gfx is the interesting one */
const IndustryTileSpec *its = GetIndustryTileSpec(it->gfx); IndustryGfx cur_gfx = GetTranslatedIndustryTileID(it->gfx);
const IndustryTileSpec *its = GetIndustryTileSpec(cur_gfx);
if (its->animation_info != 0xFFFF) AddAnimatedTile(cur_tile); if (its->animation_info != 0xFFFF) AddAnimatedTile(cur_tile);
} }
}
} while ((++it)->ti.x != -0x80); } while ((++it)->ti.x != -0x80);
i->width++; i->width++;