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.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java
index 66e3fd7..aa58bab 100644
--- a/core/src/ch/asynk/tankontank/engine/Board.java
+++ b/core/src/ch/asynk/tankontank/engine/Board.java
@@ -435,7 +435,7 @@ public abstract class Board implements Disposable
v = vector3Pool.obtain();
}
tmpHex.set(node.col, node.row);
- getPawnPosAt(pawn, tmpHex, tmpCoords);
+ pawn.getPosAt(getTile(tmpHex.x, tmpHex.y), tmpCoords);
v.set(tmpCoords.x, tmpCoords.y, o.r());
path.add(v);
prevOrientation = o;
@@ -520,11 +520,6 @@ public abstract class Board implements Disposable
return n;
}
- protected Vector2 getPawnPosAt(Pawn pawn, GridPoint2 coords, Vector2 pos)
- {
- return pawn.getPosAt(getTile(coords.x, coords.y), pos);
- }
-
public Pawn setPawnAt(Pawn pawn, GridPoint2 coords, Orientation o)
{
Vector2 pos = getPawnPosAt(pawn, coords, null);