Fixed crash when nuking Barbarian units

This commit is contained in:
Yair Morgenstern 2020-12-11 14:09:19 +02:00
parent 95423c125d
commit 1f59a4ea48
3 changed files with 3 additions and 4 deletions

View File

@ -14,7 +14,6 @@ Selected unit stays selected when single-tap moved into a tile with another unit
By 9kgsofrice:
- resources can be added by tile improvement with unique "Provides [] []"
- wonder text will not be displayed & "[] enabled:" will not show if nothing visible in list
- Specialists can add happiness
- "Should not be displayed without []" unique for constructions accomodates resources and buildings

View File

@ -388,8 +388,8 @@ object Battle {
fun declareWar(civSuffered: CivilizationInfo) {
if (civSuffered != attackingCiv
&& attackingCiv.knows(attackingCiv)
&& attackingCiv.getDiplomacyManager(civSuffered).canDeclareWar()) {
&& civSuffered.knows(attackingCiv)
&& civSuffered.getDiplomacyManager(attackingCiv).canDeclareWar()) {
civSuffered.getDiplomacyManager(attackingCiv).declareWar()
}
}

View File

@ -12,7 +12,7 @@ class GameSettings {
var checkForDueUnits: Boolean = true
var singleTapMove: Boolean = false
var language: String = "English"
var resolution: String = "900x600" // Aut-detecting resolution was a BAD IDEA since it needs to be based on DPI AND resolution.
var resolution: String = "900x600" // Auto-detecting resolution was a BAD IDEA since it needs to be based on DPI AND resolution.
var tutorialsShown = HashSet<String>()
var tutorialTasksCompleted = HashSet<String>()
var hasCrashedRecently = false