From 1b6de97c39d1373f84208b9e5b0124c65315c55b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 30 Dec 2015 23:04:18 +0100 Subject: Config: add autoPath = true --- core/src/ch/asynk/rustanddust/game/Config.java | 2 ++ core/src/ch/asynk/rustanddust/game/states/StateMove.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/ch/asynk/rustanddust/game/Config.java b/core/src/ch/asynk/rustanddust/game/Config.java index 180cd76..8545e73 100644 --- a/core/src/ch/asynk/rustanddust/game/Config.java +++ b/core/src/ch/asynk/rustanddust/game/Config.java @@ -55,6 +55,7 @@ public class Config public boolean showTargets; public boolean showMoveAssists; public boolean showEnemyPossibilities; + public boolean autoPath; public boolean debug; public Battle battle; public float fxVolume; @@ -64,6 +65,7 @@ public class Config { this.gameMode = GameMode.SOLO; this.debug = false; + this.autoPath = true; this.showMoves = true; this.showTargets = true; this.showMoveAssists = true; diff --git a/core/src/ch/asynk/rustanddust/game/states/StateMove.java b/core/src/ch/asynk/rustanddust/game/states/StateMove.java index 67fb673..6d1d7c7 100644 --- a/core/src/ch/asynk/rustanddust/game/states/StateMove.java +++ b/core/src/ch/asynk/rustanddust/game/states/StateMove.java @@ -149,7 +149,7 @@ public class StateMove extends StateCommon { to = hex; int s = map.pathsBuild(to); - if (s > 1) + if (cfg.autoPath && (s > 1)) s = map.pathsChooseOne(); map.hexMoveShow(to); map.movesHide(); -- cgit v1.1-2-g2b99