mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-13 01:08:25 +07:00
Double trades fix + Diplomacy screen layout fix (#8896)
This commit is contained in:
@ -653,7 +653,7 @@ object NextTurnAutomation {
|
||||
}) {
|
||||
|
||||
val relationshipLevel = civInfo.getDiplomacyManager(otherCiv).relationshipLevel()
|
||||
if (relationshipLevel <= RelationshipLevel.Enemy)
|
||||
if (relationshipLevel <= RelationshipLevel.Enemy || otherCiv.tradeRequests.any { it.requestingCiv == civInfo.civName })
|
||||
continue
|
||||
|
||||
val trades = potentialLuxuryTrades(civInfo, otherCiv)
|
||||
|
@ -949,7 +949,7 @@ class DiplomacyScreen(
|
||||
* _Caller is responsible to not exceed this **including its own padding**_
|
||||
*/
|
||||
// Note breaking the rule above will squeeze the leftSideScroll to the left - cumulatively.
|
||||
internal fun getTradeColumnsWidth() = (stage.width - leftSideScroll.width - 3f) / 2 // 3 for SplitPane handle
|
||||
internal fun getTradeColumnsWidth() = (stage.width * 0.8f - 3f) / 2 // 3 for SplitPane handle
|
||||
|
||||
override fun resize(width: Int, height: Int) {
|
||||
super.resize(width, height)
|
||||
|
Reference in New Issue
Block a user