From b0e43ace59b0fd74ad01f2529666d424fd354dde Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Wed, 19 Jun 2019 17:40:52 +0300 Subject: [PATCH] Resolved #885 - units disbanding on your tiles yields gold even when not on city center --- android/build.gradle | 4 ++-- core/src/com/unciv/logic/map/MapUnit.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 59f8123eb1..59daab8699 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -21,8 +21,8 @@ android { applicationId "com.unciv.app" minSdkVersion 14 targetSdkVersion 28 - versionCode 258 - versionName "2.17.7" + versionCode 259 + versionName "2.17.8" } // Had to add this crap for Travis to build, it wanted to sign the app diff --git a/core/src/com/unciv/logic/map/MapUnit.kt b/core/src/com/unciv/logic/map/MapUnit.kt index d1a5ad1d28..f92c8b5e30 100644 --- a/core/src/com/unciv/logic/map/MapUnit.kt +++ b/core/src/com/unciv/logic/map/MapUnit.kt @@ -473,7 +473,7 @@ class MapUnit { fun disband(){ destroy() - if(currentTile.isCityCenter() && currentTile.getOwner()==civInfo) + if(currentTile.getOwner()==civInfo) civInfo.gold += baseUnit.getDisbandGold() }