Fixed : Trying to move into border of uncountered civs caused crash.
This commit is contained in:
parent
68c2763ea7
commit
884c7b7bb8
1 changed files with 2 additions and 0 deletions
|
@ -426,6 +426,8 @@ class CivilizationInfo {
|
|||
|
||||
fun canEnterTiles(otherCiv: CivilizationInfo): Boolean {
|
||||
if(otherCiv==this) return true
|
||||
if(!diplomacy.containsKey(otherCiv.civName)) // not encountered yet
|
||||
return false
|
||||
if(isAtWarWith(otherCiv)) return true
|
||||
if(getDiplomacyManager(otherCiv).hasOpenBorders) return true
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue