equal
deleted
inserted
replaced
1086 return t; |
1086 return t; |
1087 } while (--attempts); |
1087 } while (--attempts); |
1088 return NULL; |
1088 return NULL; |
1089 } |
1089 } |
1090 |
1090 |
1091 static const byte _num_initial_towns[3] = {11, 23, 46}; |
1091 static const byte _num_initial_towns[3] = {4, 17, 29}; |
1092 |
1092 |
1093 bool GenerateTowns(void) |
1093 bool GenerateTowns(void) |
1094 { |
1094 { |
1095 uint num = 0; |
1095 uint num = 0; |
1096 uint n = ScaleByMapSize(_num_initial_towns[_opt.diff.number_towns] + (Random() & 7)); |
1096 uint n = ScaleByMapSize(_num_initial_towns[_opt.diff.number_towns] + (Random() & 3)); |
1097 |
1097 |
1098 SetGeneratingWorldProgress(GWP_TOWN, n); |
1098 SetGeneratingWorldProgress(GWP_TOWN, n); |
1099 |
1099 |
1100 do { |
1100 do { |
1101 IncreaseGeneratingWorldProgress(GWP_TOWN); |
1101 IncreaseGeneratingWorldProgress(GWP_TOWN); |