diff options
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/Map.java')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Map.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Map.java b/core/src/ch/asynk/rustanddust/game/Map.java index 6a5c8a9..d11525a 100644 --- a/core/src/ch/asynk/rustanddust/game/Map.java +++ b/core/src/ch/asynk/rustanddust/game/Map.java @@ -180,6 +180,8 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS public int pathsToggleHex(Hex hex) { + boolean enable = !hex.isOverlayEnabled(Hex.MOVE); + enableOverlayOn(hex, Hex.MOVE, enable); return paths.toggleCtrlTile(hex); } @@ -517,12 +519,6 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS // SHOW / HIDE - public void togglePathOverlay(Hex hex) - { - boolean enable= !hex.isOverlayEnabled(Hex.MOVE); - enableOverlayOn(hex, Hex.MOVE, enable); - } - public enum UnitType { MOVEABLE, |