From 91c96c66e7315ed834f6156f3f7aa6d63dcdd606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 11 Nov 2015 00:56:09 +0100 Subject: StateMove: call pathBuilder.choosePath() on multilpe paths --- core/src/ch/asynk/rustanddust/game/states/StateMove.java | 2 ++ 1 file changed, 2 insertions(+) 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(); -- cgit v1.1-2-g2b99