diff options
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Board.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java index a34a8f6..8dd0ce9 100644 --- a/core/src/ch/asynk/tankontank/engine/Board.java +++ b/core/src/ch/asynk/tankontank/engine/Board.java @@ -387,7 +387,8 @@ public abstract class Board implements Disposable private int pushPawnOnto(Pawn pawn, Tile tile) { - tilesToDraw.add(tile); + if (!tile.isOffMap()) + tilesToDraw.add(tile); return tile.push(pawn); } |