summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-13 12:08:03 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-13 12:08:03 +0200
commit522d25dd7c1cd9e1959b619d8d4ae20673190951 (patch)
tree5b105abc01a0c0c5d8cf8c37a10f8af00c8ddb7a /core/src
parent3ec8d212cf7c1242243ad8eba2f4c999d3b92cc3 (diff)
downloadRustAndDust-522d25dd7c1cd9e1959b619d8d4ae20673190951.zip
RustAndDust-522d25dd7c1cd9e1959b619d8d4ae20673190951.tar.gz
Map: showAttackAssists(boolean) -> clear Hex.TARGET too
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index b03021a..2e02185 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -127,8 +127,10 @@ public abstract class Map extends Board
public void showAttackAssists(boolean enable)
{
- for(GridPoint2 hex : attackAssists)
+ for(GridPoint2 hex : attackAssists) {
enableOverlayOn(hex, Hex.ASSIST, enable);
+ enableOverlayOn(hex, Hex.TARGET, false);
+ }
}
public void showPossibleTargets(boolean enable)