diff options
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine/Tile.java')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Tile.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Tile.java b/core/src/ch/asynk/tankontank/engine/Tile.java index f7122fe..94f3435 100644 --- a/core/src/ch/asynk/tankontank/engine/Tile.java +++ b/core/src/ch/asynk/tankontank/engine/Tile.java @@ -69,9 +69,11 @@ public abstract class Tile implements BasicDrawable return overlays.isEnabled(); } - public void enableOverlay(int i, boolean enable) + public boolean enableOverlay(int i, boolean enable) { overlays.enable(i, enable); + if (enable) return true; + return mustBeDrawn(); } public List<Tile> adjacents() |