summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game')
-rw-r--r--core/src/ch/asynk/rustanddust/game/map/Map2Moves.java2
-rw-r--r--core/src/ch/asynk/rustanddust/game/states/StateMove.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/map/Map2Moves.java b/core/src/ch/asynk/rustanddust/game/map/Map2Moves.java
index 239e38e..c235de3 100644
--- a/core/src/ch/asynk/rustanddust/game/map/Map2Moves.java
+++ b/core/src/ch/asynk/rustanddust/game/map/Map2Moves.java
@@ -74,7 +74,7 @@ public abstract class Map2Moves extends Map1Units
public boolean pathsCanExit(Orientation o) { return paths.canExit(o); }
public void pathsSetExit(Orientation o) { paths.setExit(o); }
public boolean pathsContains(Hex hex) { return paths.contains(hex); }
- public int pathsChooseOne() { return paths.choosePath(); }
+ public int pathsChooseBest() { return paths.chooseBest(); }
public int pathsToggleHex(Hex hex)
{
boolean enable = !hex.isOverlayEnabled(Hex.MOVE);
diff --git a/core/src/ch/asynk/rustanddust/game/states/StateMove.java b/core/src/ch/asynk/rustanddust/game/states/StateMove.java
index 6d1d7c7..1a088ac 100644
--- a/core/src/ch/asynk/rustanddust/game/states/StateMove.java
+++ b/core/src/ch/asynk/rustanddust/game/states/StateMove.java
@@ -150,7 +150,7 @@ public class StateMove extends StateCommon
to = hex;
int s = map.pathsBuild(to);
if (cfg.autoPath && (s > 1))
- s = map.pathsChooseOne();
+ s = map.pathsChooseBest();
map.hexMoveShow(to);
map.movesHide();
map.pathsShow();