Fixed a bug where protected city states would have a red line to their protector in the diplomacy overview screen (#5761)

This commit is contained in:
Xander Lenstra 2021-12-06 06:10:05 +01:00 committed by GitHub
parent 31639aac9f
commit a46f638ef1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,7 +173,7 @@ class DiplomacyOverviewTable (
val statusLine = ImageGetter.getLine(civGroup.x + civGroup.width / 2, civGroup.y + civGroup.height / 2,
otherCivGroup.x + otherCivGroup.width / 2, otherCivGroup.y + otherCivGroup.height / 2, 2f)
statusLine.color = if (diplomacy.diplomaticStatus == DiplomaticStatus.Peace) Color.GREEN else Color.RED
statusLine.color = if (diplomacy.diplomaticStatus == DiplomaticStatus.War) Color.RED else Color.GREEN
civLines[civ.civName]!!.add(statusLine)