summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game/states
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/tankontank/game/states')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateMove.java5
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateRotate.java2
2 files changed, 4 insertions, 3 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateMove.java b/core/src/ch/asynk/tankontank/game/states/StateMove.java
index b3ba2d6..f96678a 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateMove.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateMove.java
@@ -91,8 +91,9 @@ public class StateMove extends StateCommon
{
hideAssists();
// be sure that the hq is activated
- if (selectedUnit.canMove() && (map.activatedPawns.size() > 0))
- selectedUnit.move(0);
+ if (selectedUnit.canMove() && (map.activatedPawns.size() > 0)) {
+ selectedUnit.move();
+ }
super.done();
}
diff --git a/core/src/ch/asynk/tankontank/game/states/StateRotate.java b/core/src/ch/asynk/tankontank/game/states/StateRotate.java
index 3e72a2b..2b63535 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateRotate.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateRotate.java
@@ -84,7 +84,7 @@ public class StateRotate extends StateCommon
{
doRotation(o);
if (selectedUnit.canMove() && (map.activatedPawns.size() > 0))
- selectedUnit.move(0);
+ selectedUnit.move();
super.done();
}