diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/MapNode.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/MapNode.java b/core/src/ch/asynk/tankontank/engine/MapNode.java index e9b8ed9..740074e 100644 --- a/core/src/ch/asynk/tankontank/engine/MapNode.java +++ b/core/src/ch/asynk/tankontank/engine/MapNode.java @@ -144,9 +144,10 @@ public class MapNode extends Image implements Map private int removePawnFrom(Pawn pawn, int col, int row) { Tile tile = board[row][col]; + int n = tile.remove(pawn); if (!tile.mustBeDrawn()) tilesToDraw.remove(tile); - return tile.remove(pawn); + return n; } @Override |