mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-03 22:22:51 +07:00
Resolved #8047 - 'impossible' worked tiles not under your control are now cleaned up
This commit is contained in:
parent
4fff3a395e
commit
7a76f24770
@ -856,6 +856,12 @@ class CivilizationInfo : IsPartOfGameInfoSerialization {
|
||||
cityInfo.setTransients()
|
||||
}
|
||||
|
||||
// Now that all tile transients have been updated, clean "worked" tiles that are not under the Civ's control
|
||||
for (cityInfo in cities)
|
||||
for (workedTile in cityInfo.workedTiles.toList())
|
||||
if (gameInfo.tileMap[workedTile].getOwner() != this)
|
||||
cityInfo.workedTiles.remove(workedTile)
|
||||
|
||||
passThroughImpassableUnlocked = passableImpassables.isNotEmpty()
|
||||
// Cache whether this civ gets nonstandard terrain damage for performance reasons.
|
||||
nonStandardTerrainDamage = getMatchingUniques(UniqueType.DamagesContainingUnits)
|
||||
|
Loading…
Reference in New Issue
Block a user