summaryrefslogtreecommitdiffstats
path: root/test/src/ch/asynk/gdx/boardgame
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/ch/asynk/gdx/boardgame')
-rw-r--r--test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java b/test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java
index b48c953..8388959 100644
--- a/test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java
+++ b/test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java
@@ -122,8 +122,10 @@ public class BoardScreen extends AbstractScreen
private void clearAdjacents()
{
for (Tile tile : board.getAdjacents()) {
- if (tile != null)
+ if (tile != null) {
+ tilesToDraw.remove(tile);
tile.enableOverlay(12, false);
+ }
}
}
@@ -137,11 +139,6 @@ public class BoardScreen extends AbstractScreen
tile.enableOverlay(12, true);
}
}
- for (Tile tile : tilesToDraw) {
- if (!tile.overlaysEnabled()) {
- tilesToDraw.remove(tile);
- }
- }
}
private Tile getTile(int x, int y)