mirror of
https://github.com/yairm210/Unciv.git
synced 2025-08-03 00:29:18 +07:00
Resolved #2928 - contact with other civs is now also when encountering their cities
This commit is contained in:
@ -32,7 +32,7 @@ class CivInfoTransientUpdater(val civInfo: CivilizationInfo) {
|
|||||||
val viewedCivs = HashMap<CivilizationInfo,TileInfo>()
|
val viewedCivs = HashMap<CivilizationInfo,TileInfo>()
|
||||||
for (tile in civInfo.viewableTiles) {
|
for (tile in civInfo.viewableTiles) {
|
||||||
val tileOwner = tile.getOwner()
|
val tileOwner = tile.getOwner()
|
||||||
if (tileOwner != null) viewedCivs[civInfo] = tile
|
if (tileOwner != null) viewedCivs[tileOwner] = tile
|
||||||
for (unit in tile.getUnits()) viewedCivs[unit.civInfo] = tile
|
for (unit in tile.getUnits()) viewedCivs[unit.civInfo] = tile
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user