Fixed : Trying to move into border of uncountered civs caused crash.

This commit is contained in:
Duan Tao 2019-04-26 12:09:03 +08:00 committed by Yair Morgenstern
parent 68c2763ea7
commit 884c7b7bb8

View file

@ -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