summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stuff.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/stuff.cc')
-rw-r--r--crawl-ref/source/stuff.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc
index b8f862365c..8b8e4da889 100644
--- a/crawl-ref/source/stuff.cc
+++ b/crawl-ref/source/stuff.cc
@@ -1399,8 +1399,7 @@ int near_stairs(const coord_def &p, int max_dist,
{
coord_def inc;
for (inc.x = -max_dist; inc.x <= max_dist; inc.x++)
- {
- for(inc.y = -max_dist; inc.y <= max_dist; inc.y++)
+ for (inc.y = -max_dist; inc.y <= max_dist; inc.y++)
{
const coord_def np(p + inc);
@@ -1433,7 +1432,6 @@ int near_stairs(const coord_def &p, int max_dist,
return (np == you.pos()? 2 : 1);
}
}
- }
return false;
}