Fixed bug where Open Borders trades didn't work when loading games

This commit is contained in:
Yair Morgenstern 2019-10-01 22:18:25 +03:00
parent 47db4dce31
commit dd561759e4
2 changed files with 5 additions and 2 deletions

View file

@ -296,7 +296,11 @@ class CivilizationInfo {
tech.civInfo = this
tech.setTransients()
diplomacy.values.forEach { it.civInfo=this}
diplomacy.values.forEach {
it.civInfo=this
it.updateHasOpenBorders()
}
victoryManager.civInfo=this

View file

@ -85,7 +85,6 @@ class DiplomacyManager() {
toReturn.trades.addAll(trades.map { it.clone() })
toReturn.influence = influence
toReturn.flagsCountdown.putAll(flagsCountdown)
toReturn.hasOpenBorders=hasOpenBorders
toReturn.diplomaticModifiers.putAll(diplomaticModifiers)
return toReturn
}