From a3ec733010333f55b87e9f8375bb0ce4839c4b79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 22 Oct 2014 14:58:00 +0200 Subject: Pawn: revertPosition() calls setPosition() --- core/src/ch/asynk/tankontank/engine/Pawn.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/ch/asynk/tankontank/engine/Pawn.java b/core/src/ch/asynk/tankontank/engine/Pawn.java index 35973fb..3d414ef 100644 --- a/core/src/ch/asynk/tankontank/engine/Pawn.java +++ b/core/src/ch/asynk/tankontank/engine/Pawn.java @@ -122,6 +122,7 @@ public abstract class Pawn implements Moveable, Disposable { position.set(prevPosition); prevPosition.set(0f, 0f, 0f); + setPosition(position.x, position.y, position.z); } public Vector2 getCenter() @@ -247,7 +248,6 @@ public abstract class Pawn implements Moveable, Disposable @Override public void run() { revertPosition(); - setPosition(position.x, position.y, position.z); } })); -- cgit v1.1-2-g2b99