summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stuff.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-15 13:17:04 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-15 13:17:04 +0000
commit961af9991a452fe8ae5abe186a93df67d7169239 (patch)
treeac77ca2c7664faa6cfe17f9d342bd6afe32ee35f /crawl-ref/source/stuff.cc
parent83a88e5198b9b3c71123164d315d0fd94c4101be (diff)
downloadcrawl-ref-961af9991a452fe8ae5abe186a93df67d7169239.tar.gz
crawl-ref-961af9991a452fe8ae5abe186a93df67d7169239.zip
Another one of those pesky spacing changes.
One of these days Crawl *will* win the Cleanest Code Championship, just you wait... :p git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4242 c06c8d41-db1a-0410-9941-cceddc491573
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;
}