From eb3ba5139644a5ddf421adc44e760d6485642442 Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 23 May 2019 13:13:13 +0200 Subject: [PATCH] allow siege units to move when set up (#797) --- core/src/com/unciv/ui/worldscreen/TileMapHolder.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/com/unciv/ui/worldscreen/TileMapHolder.kt b/core/src/com/unciv/ui/worldscreen/TileMapHolder.kt index f9048308..81eafc25 100644 --- a/core/src/com/unciv/ui/worldscreen/TileMapHolder.kt +++ b/core/src/com/unciv/ui/worldscreen/TileMapHolder.kt @@ -84,8 +84,7 @@ class TileMapHolder(internal val worldScreen: WorldScreen, internal val tileMap: worldScreen.bottomBar.unitTable.tileSelected(tileInfo) if (selectedUnit != null && selectedUnit.getTile() != tileInfo - && selectedUnit.canMoveTo(tileInfo) && selectedUnit.movementAlgs().canReach(tileInfo) - && selectedUnit.action!="Set Up") { + && selectedUnit.canMoveTo(tileInfo) && selectedUnit.movementAlgs().canReach(tileInfo)) { // this can take a long time, because of the unit-to-tile calculation needed, so we put it in a different thread moveHere(selectedUnit, tileInfo) worldScreen.bottomBar.unitTable.selectedUnit = selectedUnit // keep moved unit selected