Resolved #3360 - notify peace treaty to all commmon known civs

This commit is contained in:
Yair Morgenstern
2020-11-23 20:01:58 +02:00
parent 02bc52ca92
commit 114effe1ae

View File

@ -526,14 +526,12 @@ class DiplomacyManager() {
diplomaticStatus = DiplomaticStatus.Peace diplomaticStatus = DiplomaticStatus.Peace
otherCivDiplomacy().diplomaticStatus = DiplomaticStatus.Peace otherCivDiplomacy().diplomaticStatus = DiplomaticStatus.Peace
if (otherCiv().isAtWarWith(civInfo)) { for (civ in getCommonKnownCivs()) {
for (civ in getCommonKnownCivs()) { civ.addNotification(
civ.addNotification( "[${civInfo.civName}] and [${otherCiv().civName}] have signed the Peace Treaty!",
"[${civInfo.civName}] and [${otherCiv().civName}] have signed the Peace Treaty!", null,
null, Color.WHITE
Color.WHITE )
)
}
} }
val otherCiv = otherCiv() val otherCiv = otherCiv()