mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-10 07:48:31 +07:00
Fixed trades always beng denied because "our proposed trade is no longer relevant"
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 289 B After Width: | Height: | Size: 328 B |
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 857 KiB |
BIN
android/assets/game2.png
Normal file
BIN
android/assets/game2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 242 KiB |
@ -358,8 +358,9 @@ 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,offeringCiv,this)) {
|
||||
if (offeringCiv.isDefeated() || !TradeEvaluation().isTradeValid(tradeRequest.trade,this, offeringCiv)) {
|
||||
tradeRequests.remove(tradeRequest)
|
||||
// Yes, this is the right direction. I checked.
|
||||
offeringCiv.addNotification("Our proposed trade is no longer relevant!", Color.GOLD)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user