diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-18 18:22:13 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-18 18:22:13 +0100 |
commit | 62a6c59188edc5ea04ecb24f2a2d9c6cdf55fce4 (patch) | |
tree | fb23f2707eab4c4fa85f4d2195e4ddd0fa13194e | |
parent | f36447921f11d651503bf38f3d2533f286cf569c (diff) | |
download | RustAndDust-62a6c59188edc5ea04ecb24f2a2d9c6cdf55fce4.zip RustAndDust-62a6c59188edc5ea04ecb24f2a2d9c6cdf55fce4.tar.gz |
Board: pushPawnOnto(..) does nothing if tile is OFFMAP
-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); } |