summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-02-05 12:50:22 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-02-05 12:50:22 +0100
commit6f81f394d79e6ee62703634a9f03979971c921b5 (patch)
treee9f4c537d9de3f4e2117f08a30465fc8e591c79a /core/src/ch/asynk/tankontank
parent9edaeac190ace73d8075b6b1196bb00afab2b210 (diff)
downloadRustAndDust-6f81f394d79e6ee62703634a9f03979971c921b5.zip
RustAndDust-6f81f394d79e6ee62703634a9f03979971c921b5.tar.gz
Unit: canRotate() returns canMove()
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/game/Unit.java3
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