diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-11 00:56:09 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-11 00:56:09 +0100 |
commit | 91c96c66e7315ed834f6156f3f7aa6d63dcdd606 (patch) | |
tree | 27bfa1caaa6e0d2c32e2624b6d5bbe6d5ff4ad99 | |
parent | 06405c508020357d2dccb59584c1390712e2b5d2 (diff) | |
download | RustAndDust-91c96c66e7315ed834f6156f3f7aa6d63dcdd606.zip RustAndDust-91c96c66e7315ed834f6156f3f7aa6d63dcdd606.tar.gz |
StateMove: call pathBuilder.choosePath() on multilpe paths
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/states/StateMove.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/states/StateMove.java b/core/src/ch/asynk/rustanddust/game/states/StateMove.java index b59b133..798e127 100644 --- a/core/src/ch/asynk/rustanddust/game/states/StateMove.java +++ b/core/src/ch/asynk/rustanddust/game/states/StateMove.java @@ -156,6 +156,8 @@ public class StateMove extends StateCommon { to = hex; int s = map.pathBuilder.build(to); + if (s > 1) + s = map.pathBuilder.choosePath(); map.showMove(to); map.hidePossibleMoves(); map.showPathBuilder(); |