equal
deleted
inserted
replaced
1435 |
1435 |
1436 i->town = t; |
1436 i->town = t; |
1437 i->owner = owner; |
1437 i->owner = owner; |
1438 |
1438 |
1439 r = Random(); |
1439 r = Random(); |
1440 i->random_color = GB(r, 8, 4); |
1440 i->random_color = GB(r, 0, 4); |
1441 i->counter = GB(r, 0, 12); |
1441 i->counter = GB(r, 4, 12); |
|
1442 i->random = GB(r, 16, 16); |
1442 i->produced_cargo_waiting[0] = 0; |
1443 i->produced_cargo_waiting[0] = 0; |
1443 i->produced_cargo_waiting[1] = 0; |
1444 i->produced_cargo_waiting[1] = 0; |
1444 i->incoming_cargo_waiting[0] = 0; |
1445 i->incoming_cargo_waiting[0] = 0; |
1445 i->incoming_cargo_waiting[1] = 0; |
1446 i->incoming_cargo_waiting[1] = 0; |
1446 i->incoming_cargo_waiting[2] = 0; |
1447 i->incoming_cargo_waiting[2] = 0; |
1510 MakeIndustry(cur_tile, i->index, it->gfx); |
1511 MakeIndustry(cur_tile, i->index, it->gfx); |
1511 |
1512 |
1512 if (_generating_world) { |
1513 if (_generating_world) { |
1513 SetIndustryConstructionCounter(cur_tile, 3); |
1514 SetIndustryConstructionCounter(cur_tile, 3); |
1514 SetIndustryConstructionStage(cur_tile, 2); |
1515 SetIndustryConstructionStage(cur_tile, 2); |
1515 } else if (it->gfx >= NEW_INDUSTRYTILEOFFSET) { |
1516 } |
|
1517 if (it->gfx >= NEW_INDUSTRYTILEOFFSET) { |
1516 /* New industry */ |
1518 /* New industry */ |
1517 const IndustryTileSpec *its = GetIndustryTileSpec(it->gfx); |
1519 const IndustryTileSpec *its = GetIndustryTileSpec(it->gfx); |
1518 if (its->animation_info != 0xFFFF) AddAnimatedTile(cur_tile); |
1520 if (its->animation_info != 0xFFFF) AddAnimatedTile(cur_tile); |
1519 } |
1521 } |
1520 } |
1522 } |