@@ 47,6 47,8 @@ public class Main {
//Prior to that, it might decrease when we load EE1 cities from the DB
static int nextXMLID = 125;
+ final static int[] years = { 1900, 1910, 1920 };
+
public static void main(String[] args) throws Exception {
// testXMLExport();
@@ 93,7 95,6 @@ public class Main {
updateExistingXMLCities(citiesAlreadyExisting, cityDB);
- int[] years = { 1900, 1910 };
for (int year : years) {
//Re-import so we don't add cities to the XML more than once
cityDB = ImportCitiesFromXMLFile(cityDB, citiesAlreadyExisting);
@@ 197,7 198,6 @@ cityDBLoop: for (CityDB city : cities) {
if (!region.getCountry().getName().isEmpty()) { //eventually, we'll have an optional filter for e.g. a France-only game
List<RegionalDemographicsDB> regionData = RegionalDemographicsDB.demographicsByRegion.get(region.getName());
List<CityDB> citiesInRegion = region.getCitiesInRegion();
- int[] years = { 1900, 1910 };
for (int year : years ) {
int totalPop = 0;
for (CityDB city : citiesInRegion) {