|
@@ -1434,14 +1434,15 @@ static void DoCreateNewIndustry(Industry
|
|
|
}
|
|
|
|
|
|
i->town = t;
|
|
|
i->owner = owner;
|
|
|
|
|
|
r = Random();
|
|
|
i->random_color = GB(r, 8, 4);
|
|
|
i->counter = GB(r, 0, 12);
|
|
|
i->random_color = GB(r, 0, 4);
|
|
|
i->counter = GB(r, 4, 12);
|
|
|
i->random = GB(r, 16, 16);
|
|
|
i->produced_cargo_waiting[0] = 0;
|
|
|
i->produced_cargo_waiting[1] = 0;
|
|
|
i->incoming_cargo_waiting[0] = 0;
|
|
|
i->incoming_cargo_waiting[1] = 0;
|
|
|
i->incoming_cargo_waiting[2] = 0;
|
|
|
i->this_month_production[0] = 0;
|
|
@@ -1509,13 +1510,14 @@ static void DoCreateNewIndustry(Industry
|
|
|
|
|
|
MakeIndustry(cur_tile, i->index, it->gfx);
|
|
|
|
|
|
if (_generating_world) {
|
|
|
SetIndustryConstructionCounter(cur_tile, 3);
|
|
|
SetIndustryConstructionStage(cur_tile, 2);
|
|
|
} else if (it->gfx >= NEW_INDUSTRYTILEOFFSET) {
|
|
|
}
|
|
|
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);
|