mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 14:24:43 -04:00
Fixed : Trying to move into border of uncountered civs caused crash.
This commit is contained in:
parent
68c2763ea7
commit
884c7b7bb8
@ -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…
x
Reference in New Issue
Block a user