From 09079bd76fa0bd21c3a21af90813d1da9baa6926 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Mon, 3 Jun 2019 20:26:05 +0300 Subject: [PATCH] Resolved #839 - Set up takes 1 movement point --- core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt b/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt index 6ee8392775..a1c07b06d3 100644 --- a/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt +++ b/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt @@ -128,12 +128,7 @@ class UnitActions { val setUp = unit.action == "Set Up" actionList+=UnitAction("Set up", unit.currentMovement >0 && !setUp, currentAction = setUp ) { unit.action="Set Up" - // setting up uses up all movement points - // this is to avoid problems with the idle state: - // - unit should not be idle when setting up right now - // - unit should be idle when set up in the past - unit.currentMovement=0f - unitTable.selectedUnit = null + unit.useMovementPoints(1f) }.sound("setup") }