summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-30 23:04:18 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-30 23:04:18 +0100
commit1b6de97c39d1373f84208b9e5b0124c65315c55b (patch)
tree6a34331199e04b0776bd02fd9ae414f28394108b /core
parentbc458868136cd2a841a642e187f2f5ffc19a7b9d (diff)
downloadRustAndDust-1b6de97c39d1373f84208b9e5b0124c65315c55b.zip
RustAndDust-1b6de97c39d1373f84208b9e5b0124c65315c55b.tar.gz
Config: add autoPath = true
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Config.java2
-rw-r--r--core/src/ch/asynk/rustanddust/game/states/StateMove.java2
2 files changed, 3 insertions, 1 deletions
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();