equal
deleted
inserted
replaced
1488 x *= _patches.initial_city_size; |
1488 x *= _patches.initial_city_size; |
1489 t->larger_town = true; |
1489 t->larger_town = true; |
1490 break; |
1490 break; |
1491 } |
1491 } |
1492 |
1492 |
|
1493 t->noise_reached = 0; |
|
1494 |
1493 t->num_houses += x; |
1495 t->num_houses += x; |
1494 UpdateTownRadius(t); |
1496 UpdateTownRadius(t); |
1495 |
1497 |
1496 int i = x * 4; |
1498 int i = x * 4; |
1497 do { |
1499 do { |
1576 } while (--attempts != 0); |
1578 } while (--attempts != 0); |
1577 |
1579 |
1578 return NULL; |
1580 return NULL; |
1579 } |
1581 } |
1580 |
1582 |
1581 static const byte _num_initial_towns[4] = {5, 11, 23, 46}; |
1583 static const byte _num_initial_towns[4] = {5, 11, 23, 46}; // very low, low, normal, high |
1582 |
1584 |
1583 bool GenerateTowns() |
1585 bool GenerateTowns() |
1584 { |
1586 { |
1585 uint num = 0; |
1587 uint num = 0; |
1586 uint n = ScaleByMapSize(_num_initial_towns[_opt.diff.number_towns] + (Random() & 7)); |
1588 uint n = ScaleByMapSize(_num_initial_towns[_opt.diff.number_towns] + (Random() & 7)); |