1
0
Fork 0

(svn r11403) -Fix: NewIndustries GRF assume that tiles are already animated during construction.

release/0.6
rubidium 2007-11-11 00:53:59 +00:00
parent 63b36d9330
commit d32604d59e
1 changed files with 6 additions and 3 deletions

View File

@ -643,9 +643,7 @@ static void MakeIndustryTileBigger(TileIndex tile)
IndustryGfx gfx = GetIndustryGfx(tile); IndustryGfx gfx = GetIndustryGfx(tile);
if (gfx >= NEW_INDUSTRYTILEOFFSET) { if (gfx >= NEW_INDUSTRYTILEOFFSET) {
/* New industry */ /* New industries are already animated on construction. */
const IndustryTileSpec *its = GetIndustryTileSpec(gfx);
if (its->animation_info != 0xFFFF) AddAnimatedTile(tile);
return; return;
} }
@ -1507,9 +1505,14 @@ static void DoCreateNewIndustry(Industry *i, TileIndex tile, int type, const Ind
DoCommand(cur_tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR); DoCommand(cur_tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR);
MakeIndustry(cur_tile, i->index, it->gfx); MakeIndustry(cur_tile, i->index, it->gfx);
if (_generating_world) { if (_generating_world) {
SetIndustryConstructionCounter(cur_tile, 3); SetIndustryConstructionCounter(cur_tile, 3);
SetIndustryConstructionStage(cur_tile, 2); SetIndustryConstructionStage(cur_tile, 2);
} else if (it->gfx >= NEW_INDUSTRYTILEOFFSET) {
/* New industry */
const IndustryTileSpec *its = GetIndustryTileSpec(it->gfx);
if (its->animation_info != 0xFFFF) AddAnimatedTile(cur_tile);
} }
} }
} while ((++it)->ti.x != -0x80); } while ((++it)->ti.x != -0x80);