summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-21 04:18:55 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-21 04:18:55 +0200
commit39b1eb3399d24325f3ee3ecd360529bf018ce5d0 (patch)
tree0ee7dcf2f8a28f60675ae1799c94deccb2e753ed /core/src/ch/asynk
parent0babc3fa6b5fefb7fe5920c5116afb60266d1b08 (diff)
downloadRustAndDust-39b1eb3399d24325f3ee3ecd360529bf018ce5d0.zip
RustAndDust-39b1eb3399d24325f3ee3ecd360529bf018ce5d0.tar.gz
MapNode: fix tilesToDraw management
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/engine/MapNode.java3
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