summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-16 21:51:46 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-16 21:51:46 +0200
commit157656391964c41465bb0380a096cea5d8d72172 (patch)
tree14627ffb0355a23535d42b8fb38d830e73ce0eb3 /core
parentdfbd4008fe50c5fcf7385b49dcf8a9af14c61722 (diff)
downloadRustAndDust-157656391964c41465bb0380a096cea5d8d72172.zip
RustAndDust-157656391964c41465bb0380a096cea5d8d72172.tar.gz
PawnImage#resetMoves do not rotate if not needed
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/PawnImage.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/PawnImage.java b/core/src/ch/asynk/tankontank/game/PawnImage.java
index c4b7581..9381a6d 100644
--- a/core/src/ch/asynk/tankontank/game/PawnImage.java
+++ b/core/src/ch/asynk/tankontank/game/PawnImage.java
@@ -45,7 +45,8 @@ public class PawnImage extends Image implements Pawn
while(path.size() != 0) {
Vector3 v = path.pop();
seq.addAction(Actions.moveTo(v.x, v.y, MOVE_TIME));
- seq.addAction(Actions.rotateTo(v.z, ROTATE_TIME));
+ if (v.z != HexOrientation.KEEP.v)
+ seq.addAction(Actions.rotateTo(v.z, ROTATE_TIME));
}
seq.addAction( Actions.run(new Runnable() {