src/town_cmd.cpp
changeset 7056 b4f146586c97
parent 7043 6b6d0495ad0c
child 7067 ea55b6046015
equal deleted inserted replaced
7055:9118fc525e42 7056:b4f146586c97
  1249 		return t;
  1249 		return t;
  1250 	} while (--attempts);
  1250 	} while (--attempts);
  1251 	return NULL;
  1251 	return NULL;
  1252 }
  1252 }
  1253 
  1253 
  1254 static const byte _num_initial_towns[3] = {11, 23, 46};
  1254 static const byte _num_initial_towns[4] = {5, 11, 23, 46};
  1255 
  1255 
  1256 bool GenerateTowns()
  1256 bool GenerateTowns()
  1257 {
  1257 {
  1258 	uint num = 0;
  1258 	uint num = 0;
  1259 	uint n = ScaleByMapSize(_num_initial_towns[_opt.diff.number_towns] + (Random() & 7));
  1259 	uint n = ScaleByMapSize(_num_initial_towns[_opt.diff.number_towns] + (Random() & 7));