summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-07 16:16:13 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-07 16:16:13 +0000
commit06bd2b57615628e21b7eabde1e7f3258a34fa006 (patch)
tree9c1224a0192d0423ccac2aed7a6a5660a7d1c38c /crawl-ref/source/dungeon.cc
parent520ea88045ca42ec6b830015b86e8bda8e9b16d6 (diff)
downloadcrawl-ref-06bd2b57615628e21b7eabde1e7f3258a34fa006.tar.gz
crawl-ref-06bd2b57615628e21b7eabde1e7f3258a34fa006.zip
Treat + and = at the edge of a map as an exit (David).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1417 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r--crawl-ref/source/dungeon.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc
index 1772b2ce0a..46fb3b6c79 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -3365,6 +3365,13 @@ static int vault_grid( vault_placement &place,
break;
}
+ if ((vgrid == '=' || vgrid == '+')
+ && (vx == place.x || vy == place.y || vx == place.x + place.width - 1
+ || vy == place.y + place.height - 1))
+ {
+ targets.push_back( coord_def(vx, vy) );
+ }
+
// then, handle grids that place "stuff" {dlb}:
switch (vgrid) // yes, I know this is a bit ugly ... {dlb}
{