summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/docs/crawl_options.txt2
-rw-r--r--crawl-ref/source/travel.cc8
2 files changed, 6 insertions, 4 deletions
diff --git a/crawl-ref/docs/crawl_options.txt b/crawl-ref/docs/crawl_options.txt
index f24812ca7f..2220f30511 100644
--- a/crawl-ref/docs/crawl_options.txt
+++ b/crawl-ref/docs/crawl_options.txt
@@ -636,7 +636,7 @@ explore_improved = false
auto-explore. On average it increases the number of turns taken
by about 0.9%, sometimes actually speeding it up slightly and
sometimes increasing the turns taken by up to 5%, with
- pathological cases causing a 50% increase.
+ pathological cases causing a 20% increase.
tc_reachable = blue
tc_dangerous = cyan
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc
index af6f5e8573..07efdd4afe 100644
--- a/crawl-ref/source/travel.cc
+++ b/crawl-ref/source/travel.cc
@@ -928,15 +928,17 @@ static void explore_find_target_square()
// Has moving along the straight line found an unexplored
// square?
- if (!is_terrain_seen(target + delta) && target != you.pos())
+ if (!is_terrain_seen(target + delta) && target != you.pos()
+ && target != whereto)
{
// Auto-explore is only zigzagging if the prefered
// target (whereto) and the anti-zigzag target are
// close together.
if (grid_distance(target.x, target.y,
whereto.x, whereto.y) <= 5
- && (distance(target.x, target.y,
- whereto.x, whereto.y) <= 34))
+ && distance(target.x, target.y,
+ whereto.x, whereto.y) <= 34)
+ //&& t_dist - w_dist <= 14)
{
set_target_square(target);
return;