industry_cmd.c
changeset 4297 d0311b62255c
parent 4293 4b7006c1b5eb
child 4300 c7e43c47a2b9
equal deleted inserted replaced
4296:f6a019c63d35 4297:d0311b62255c
  1645 	int j;
  1645 	int j;
  1646 	Industry *i;
  1646 	Industry *i;
  1647 
  1647 
  1648 	type = _new_industry_rand[_opt.landscape][GB(r, 16, 5)];
  1648 	type = _new_industry_rand[_opt.landscape][GB(r, 16, 5)];
  1649 
  1649 
  1650 	if (type == IT_OIL_WELL && _date > 10958) return;
  1650 	if (type == IT_OIL_WELL && _cur_year > 1950) return;
  1651 	if (type == IT_OIL_RIG  && _date < 14610) return;
  1651 	if (type == IT_OIL_RIG  && _cur_year < 1960) return;
  1652 
  1652 
  1653 	j = 2000;
  1653 	j = 2000;
  1654 	for (;;) {
  1654 	for (;;) {
  1655 		i = CreateNewIndustry(RandomTile(), type);
  1655 		i = CreateNewIndustry(RandomTile(), type);
  1656 		if (i != NULL) break;
  1656 		if (i != NULL) break;