diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-04 15:46:28 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-04 15:46:28 +0200 |
commit | b8c952ff5a8ad12d8ae116698da89571a63a5249 (patch) | |
tree | 9fa69eb21ff7e4caada491987e9eed5a7309a4c4 /core/src/ch/asynk/tankontank | |
parent | e6d6bc6bb8e19e409619b0a7becb7988a791eb13 (diff) | |
download | RustAndDust-b8c952ff5a8ad12d8ae116698da89571a63a5249.zip RustAndDust-b8c952ff5a8ad12d8ae116698da89571a63a5249.tar.gz |
Board: use pawn.setPosition(..) instead of pawn.pushMove(..)
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Board.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java index 14f670f..6a5867e 100644 --- a/core/src/ch/asynk/tankontank/engine/Board.java +++ b/core/src/ch/asynk/tankontank/engine/Board.java @@ -446,7 +446,7 @@ public abstract class Board implements Disposable public void setPawnAt(Pawn pawn, GridPoint2 coords, Orientation o) { Vector2 pos = getPawnPosAt(pawn, coords, null); - pawn.pushMove(pos.x, pos.y, o); + pawn.setPosition(pos.x, pos.y, o.r()); pushPawnAt(pawn, coords); } |