From 8dd8fa3575eeb811c425d3ac7085807bf9409967 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Mon, 10 Aug 2020 21:03:28 +0300 Subject: [PATCH] Resolved #2951 - only ancient ruins improvements are removed around players' starting locations, and not other improvements --- core/src/com/unciv/logic/GameStarter.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/logic/GameStarter.kt b/core/src/com/unciv/logic/GameStarter.kt index 01255ac62b..8ddb32cb11 100644 --- a/core/src/com/unciv/logic/GameStarter.kt +++ b/core/src/com/unciv/logic/GameStarter.kt @@ -126,7 +126,7 @@ object GameStarter { if (tile.improvement != null && tile.improvement!!.startsWith("StartingLocation ")) tile.improvement = null // set max starting movement for units loaded from map - for(unit in tile.getUnits()) unit.currentMovement = unit.getMaxMovement().toFloat() + for (unit in tile.getUnits()) unit.currentMovement = unit.getMaxMovement().toFloat() } @@ -143,7 +143,8 @@ object GameStarter { for (civ in gameInfo.civilizations.filter { !it.isBarbarian() && !it.isSpectator() }) { val startingLocation = startingLocations[civ]!! for (tile in startingLocation.getTilesInDistance(3)) - tile.improvement = null // Remove ancient ruins in immediate vicinity + if (tile.improvement == Constants.ancientRuins) + tile.improvement = null // Remove ancient ruins in immediate vicinity fun placeNearStartingPosition(unitName: String) { civ.placeUnitNearTile(startingLocation.position, unitName)