summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-10 08:53:59 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-10 08:53:59 +0200
commit197dd079a5729bb733e13173a88958a2a327d91b (patch)
treeb3c83f438839dd96c464afbd6df1f0da52c5d975
parentd71752cb7527ffac3fb25aea2c460bc18a3e3a5e (diff)
downloadRustAndDust-197dd079a5729bb733e13173a88958a2a327d91b.zip
RustAndDust-197dd079a5729bb733e13173a88958a2a327d91b.tar.gz
HeadedPawn: setRotation() must set z coordinate of position
-rw-r--r--core/src/ch/asynk/tankontank/engine/HeadedPawn.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/HeadedPawn.java b/core/src/ch/asynk/tankontank/engine/HeadedPawn.java
index 6ed498e..9be1d06 100644
--- a/core/src/ch/asynk/tankontank/engine/HeadedPawn.java
+++ b/core/src/ch/asynk/tankontank/engine/HeadedPawn.java
@@ -52,6 +52,7 @@ public abstract class HeadedPawn extends Pawn
@Override
public void setRotation(float z)
{
+ getPosition().z = z;
head.setRotation(z);
this.orientation = Orientation.fromRotation(z);
}