Resolved #1323 - invalid trades should now be removed when turn starts

This commit is contained in:
Yair Morgenstern 2019-11-13 21:45:54 +02:00
parent 1abc649d59
commit a94a3f9d2e

View File

@ -359,7 +359,7 @@ class CivilizationInfo {
for(tradeRequest in tradeRequests.toList()) { // remove trade requests where one of the sides can no longer supply
val offeringCiv = gameInfo.getCivilization(tradeRequest.requestingCiv)
if (offeringCiv.isDefeated() || !TradeEvaluation().isTradeValid(tradeRequest.trade,this, offeringCiv)) {
if (offeringCiv.isDefeated() || !TradeEvaluation().isTradeValid(tradeRequest.trade,offeringCiv,this)) {
tradeRequests.remove(tradeRequest)
offeringCiv.addNotification("Our proposed trade is no longer relevant!", Color.GOLD)
}