summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-18 18:22:13 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-18 18:22:13 +0100
commit62a6c59188edc5ea04ecb24f2a2d9c6cdf55fce4 (patch)
treefb23f2707eab4c4fa85f4d2195e4ddd0fa13194e /core/src/ch/asynk
parentf36447921f11d651503bf38f3d2533f286cf569c (diff)
downloadRustAndDust-62a6c59188edc5ea04ecb24f2a2d9c6cdf55fce4.zip
RustAndDust-62a6c59188edc5ea04ecb24f2a2d9c6cdf55fce4.tar.gz
Board: pushPawnOnto(..) does nothing if tile is OFFMAP
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Board.java3
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);
}