diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-22 14:58:00 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-22 14:58:00 +0200 |
commit | a3ec733010333f55b87e9f8375bb0ce4839c4b79 (patch) | |
tree | bed14c254a37d1a4a0494a0912f3626bf267d524 /core | |
parent | 3aa825b50ec463948161ae6a18ead4292548d338 (diff) | |
download | RustAndDust-a3ec733010333f55b87e9f8375bb0ce4839c4b79.zip RustAndDust-a3ec733010333f55b87e9f8375bb0ce4839c4b79.tar.gz |
Pawn: revertPosition() calls setPosition()
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Pawn.java | 2 |
1 files changed, 1 insertions, 1 deletions
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); } })); |