summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Board.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java
index 9a9cbb2..6379bed 100644
--- a/core/src/ch/asynk/tankontank/engine/Board.java
+++ b/core/src/ch/asynk/tankontank/engine/Board.java
@@ -358,13 +358,12 @@ public abstract class Board implements Disposable
{
removePawn(pawn);
+ final Tile destination = possiblePaths.to;
AnimationSequence seq = pawn.getMoveAnimation(possiblePaths.iterator(), possiblePaths.pathSteps(0) + 2);
seq.addAnimation(RunnableAnimation.get(pawn, new Runnable() {
@Override
public void run() {
- // FIXME pawn.getTile() is not ok
- Vector2 center = pawn.getCenter();
- setPawnOnto(pawn, getTileAt(center.x, center.y), pawn.getRotation());
+ setPawnOnto(pawn, destination, pawn.getRotation());
}
}));
seq.addAnimation(whenDone);