diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-21 04:18:55 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-21 04:18:55 +0200 |
commit | 39b1eb3399d24325f3ee3ecd360529bf018ce5d0 (patch) | |
tree | 0ee7dcf2f8a28f60675ae1799c94deccb2e753ed /core | |
parent | 0babc3fa6b5fefb7fe5920c5116afb60266d1b08 (diff) | |
download | RustAndDust-39b1eb3399d24325f3ee3ecd360529bf018ce5d0.zip RustAndDust-39b1eb3399d24325f3ee3ecd360529bf018ce5d0.tar.gz |
MapNode: fix tilesToDraw management
Diffstat (limited to 'core')
-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 |