diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-15 16:42:12 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-15 16:42:12 +0100 |
commit | 85735eec37cdc0c2a66cfd458fcc47b0db069155 (patch) | |
tree | 8b93dd72885f9758bd903f7b1b932286d944dc98 /core/src/ch/asynk/tankontank/game/states | |
parent | 8a64a7dd7f547556cda46bc20c5948844ffffb58 (diff) | |
download | RustAndDust-85735eec37cdc0c2a66cfd458fcc47b0db069155.zip RustAndDust-85735eec37cdc0c2a66cfd458fcc47b0db069155.tar.gz |
StateMove: coding style
Diffstat (limited to 'core/src/ch/asynk/tankontank/game/states')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateMove.java | 6 |
1 files changed, 3 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 e474396..0300aed 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateMove.java +++ b/core/src/ch/asynk/tankontank/game/states/StateMove.java @@ -70,9 +70,9 @@ public class StateMove extends StateCommon { hideAssists(); // be sure that the hq is activated - if (selectedUnit.canMove() && (map.activatedPawns.size() > 0)) { - selectedUnit.move(); - } + if (selectedUnit.canMove() && (map.activatedPawns.size() > 0)) + selectedUnit.setMoved(); + return StateType.DONE; } |