summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/teleport.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/teleport.cc')
-rw-r--r--crawl-ref/source/teleport.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/teleport.cc b/crawl-ref/source/teleport.cc
index c3b553552f..375c9f96bf 100644
--- a/crawl-ref/source/teleport.cc
+++ b/crawl-ref/source/teleport.cc
@@ -269,9 +269,11 @@ bool random_near_space(const coord_def& origin, coord_def& target,
int walls_between = 0;
if (!crawl_state.arena)
+ {
walls_between = num_feats_between(target, you.pos(),
DNGN_CLEAR_ROCK_WALL,
DNGN_CLEAR_PERMAROCK_WALL);
+ }
if (walls_between >= min_walls_between)
return (true);
@@ -279,5 +281,3 @@ bool random_near_space(const coord_def& origin, coord_def& target,
return (false);
}
-
-