diff options
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Map.java | 8 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/states/StateMove.java | 1 |
2 files changed, 2 insertions, 7 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, diff --git a/core/src/ch/asynk/rustanddust/game/states/StateMove.java b/core/src/ch/asynk/rustanddust/game/states/StateMove.java index 762c476..6410c67 100644 --- a/core/src/ch/asynk/rustanddust/game/states/StateMove.java +++ b/core/src/ch/asynk/rustanddust/game/states/StateMove.java @@ -173,7 +173,6 @@ public class StateMove extends StateCommon // } else { map.pathsHide(); - map.togglePathOverlay(hex); s = map.pathsToggleHex(hex); map.pathsShow(); } |