src/town_cmd.cpp
changeset 6060 f47446db674c
parent 5668 36b39f4a9032
child 6061 fad5b9f8ada8
equal deleted inserted replaced
6059:91820301b990 6060:f47446db674c
  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);