diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-05 12:50:22 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-05 12:50:22 +0100 |
commit | 6f81f394d79e6ee62703634a9f03979971c921b5 (patch) | |
tree | e9f4c537d9de3f4e2117f08a30465fc8e591c79a /core | |
parent | 9edaeac190ace73d8075b6b1196bb00afab2b210 (diff) | |
download | RustAndDust-6f81f394d79e6ee62703634a9f03979971c921b5.zip RustAndDust-6f81f394d79e6ee62703634a9f03979971c921b5.tar.gz |
Unit: canRotate() returns canMove()
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Unit.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java index 87ba3cd..23bf351 100644 --- a/core/src/ch/asynk/tankontank/game/Unit.java +++ b/core/src/ch/asynk/tankontank/game/Unit.java @@ -255,8 +255,7 @@ public class Unit extends HeadedPawn @Override public boolean canRotate() { - if (isHardTarget()) return !hasMoved; - return (!hasMoved && !hasFired); + return canMove(); } @Override |