Resolved #885 - units disbanding on your tiles yields gold even when not on city center

This commit is contained in:
Yair Morgenstern
2019-06-19 17:40:52 +03:00
parent bfe934edb4
commit b0e43ace59
2 changed files with 3 additions and 3 deletions

View File

@ -21,8 +21,8 @@ android {
applicationId "com.unciv.app" applicationId "com.unciv.app"
minSdkVersion 14 minSdkVersion 14
targetSdkVersion 28 targetSdkVersion 28
versionCode 258 versionCode 259
versionName "2.17.7" versionName "2.17.8"
} }
// Had to add this crap for Travis to build, it wanted to sign the app // Had to add this crap for Travis to build, it wanted to sign the app

View File

@ -473,7 +473,7 @@ class MapUnit {
fun disband(){ fun disband(){
destroy() destroy()
if(currentTile.isCityCenter() && currentTile.getOwner()==civInfo) if(currentTile.getOwner()==civInfo)
civInfo.gold += baseUnit.getDisbandGold() civInfo.gold += baseUnit.getDisbandGold()
} }