file-format: use Boolean.toString rather than hardcoding "true"/"false"

This commit is contained in:
Jason Long 2013-07-28 07:32:38 -04:00
parent e7207b1839
commit 4ee34ba245

View file

@ -2053,9 +2053,9 @@ public class Micropolis
out.writeAttribute("crimeAverage", Integer.toString(crimeAverage));
out.writeAttribute("pollutionAverage", Integer.toString(pollutionAverage));
out.writeAttribute("gameLevel", Integer.toString(gameLevel));
out.writeAttribute("autoBulldoze", autoBulldoze ? "true" : "false");
out.writeAttribute("autoBudget", autoBudget ? "true" : "false");
out.writeAttribute("autoGo", autoGo ? "true" : "false");
out.writeAttribute("autoBulldoze", Boolean.toString(autoBulldoze));
out.writeAttribute("autoBudget", Boolean.toString(autoBudget));
out.writeAttribute("autoGo", Boolean.toString(autoGo));
out.writeAttribute("cityTax", Integer.toString(cityTax));
out.writeAttribute("simSpeed", simSpeed.name());
out.writeAttribute("policePercent", Double.toString(policePercent*100));