mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-15 10:18:26 +07:00
Fixed bug where Open Borders trades didn't work when loading games
This commit is contained in:
@ -296,7 +296,11 @@ class CivilizationInfo {
|
|||||||
|
|
||||||
tech.civInfo = this
|
tech.civInfo = this
|
||||||
tech.setTransients()
|
tech.setTransients()
|
||||||
diplomacy.values.forEach { it.civInfo=this}
|
|
||||||
|
diplomacy.values.forEach {
|
||||||
|
it.civInfo=this
|
||||||
|
it.updateHasOpenBorders()
|
||||||
|
}
|
||||||
|
|
||||||
victoryManager.civInfo=this
|
victoryManager.civInfo=this
|
||||||
|
|
||||||
|
@ -85,7 +85,6 @@ class DiplomacyManager() {
|
|||||||
toReturn.trades.addAll(trades.map { it.clone() })
|
toReturn.trades.addAll(trades.map { it.clone() })
|
||||||
toReturn.influence = influence
|
toReturn.influence = influence
|
||||||
toReturn.flagsCountdown.putAll(flagsCountdown)
|
toReturn.flagsCountdown.putAll(flagsCountdown)
|
||||||
toReturn.hasOpenBorders=hasOpenBorders
|
|
||||||
toReturn.diplomaticModifiers.putAll(diplomaticModifiers)
|
toReturn.diplomaticModifiers.putAll(diplomaticModifiers)
|
||||||
return toReturn
|
return toReturn
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user