summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-11-11 00:56:09 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-11-11 00:56:09 +0100
commit91c96c66e7315ed834f6156f3f7aa6d63dcdd606 (patch)
tree27bfa1caaa6e0d2c32e2624b6d5bbe6d5ff4ad99 /core/src/ch
parent06405c508020357d2dccb59584c1390712e2b5d2 (diff)
downloadRustAndDust-91c96c66e7315ed834f6156f3f7aa6d63dcdd606.zip
RustAndDust-91c96c66e7315ed834f6156f3f7aa6d63dcdd606.tar.gz
StateMove: call pathBuilder.choosePath() on multilpe paths
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/rustanddust/game/states/StateMove.java2
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();