mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-13 12:27:40 +07:00
Influence bar not displayed for city-states that don't know the viewing civ
This commit is contained in:
parent
9a887e4840
commit
8f535391b3
@ -4,7 +4,7 @@ object BuildConfig {
|
||||
const val kotlinVersion = "1.3.71"
|
||||
const val appName = "Unciv"
|
||||
const val appCodeNumber = 484
|
||||
const val appVersion = "3.11.3"
|
||||
const val appVersion = "3.11.3-patch1"
|
||||
|
||||
const val gdxVersion = "1.9.10"
|
||||
const val roboVMVersion = "2.3.1"
|
||||
|
@ -48,7 +48,7 @@ class CityButton(val city: CityInfo, private val tileGroup: WorldTileGroup): Tab
|
||||
iconTable = getIconTable()
|
||||
add(iconTable).row()
|
||||
|
||||
if (city.civInfo.isCityState()) {
|
||||
if (city.civInfo.isCityState() && city.civInfo.knows(worldScreen.viewingCiv)) {
|
||||
val diplomacyManager = city.civInfo.getDiplomacyManager(worldScreen.viewingCiv)
|
||||
val influenceBar = getInfluenceBar(diplomacyManager.influence, diplomacyManager.relationshipLevel())
|
||||
add(influenceBar).row()
|
||||
|
Loading…
Reference in New Issue
Block a user