diff --git a/core/src/com/unciv/logic/civilization/CivRankingHistory.kt b/core/src/com/unciv/logic/civilization/CivRankingHistory.kt index 45527fe9e3..25475491fa 100644 --- a/core/src/com/unciv/logic/civilization/CivRankingHistory.kt +++ b/core/src/com/unciv/logic/civilization/CivRankingHistory.kt @@ -31,17 +31,9 @@ class CivRankingHistory : HashMap>(), IsPartOfGameInf override fun write(json: Json) { for ((turn, rankings) in this) { - // Old format - deprecated 4.12.18 - json.writeObjectStart(turn.toString()) - for ((rankingType, score) in rankings) { - json.writeValue(rankingType.idForSerialization.toString(), score) - } - json.writeObjectEnd() - - // New format (disabled) -// val rankingsString = rankings.entries -// .joinToString("") { it.key.idForSerialization.toString() + it.value } -// json.writeValue(turn.toString(), rankingsString) + val rankingsString = rankings.entries + .joinToString("") { it.key.idForSerialization.toString() + it.value } + json.writeValue(turn.toString(), rankingsString) } }