summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapdef.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-09 11:08:36 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-09 11:08:36 +0000
commit240d458d718fcae5faaffb6d49ee0da27b585465 (patch)
tree205bfd43fcf2eea3abf79e4ceb8f04599b1147ab /crawl-ref/source/mapdef.cc
parent2517b1cf2451cab3e9466a8b85623ccbafc48fdb (diff)
downloadcrawl-ref-240d458d718fcae5faaffb6d49ee0da27b585465.tar.gz
crawl-ref-240d458d718fcae5faaffb6d49ee0da27b585465.zip
More debug stats for maps.
level_range was segfaulting when compared against Abyss and Pan level_ids, fixed. Fixed level_id operator < (). Enabled use of vaults in non-Dungeon areas (Lair specific vaults were unused). These vaults are placed as extras, and are subject to the same constraints as branch entry vaults (the smaller the vault, the better the chance of being placed). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1811 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mapdef.cc')
-rw-r--r--crawl-ref/source/mapdef.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc
index 7324d3b964..17fa79c596 100644
--- a/crawl-ref/source/mapdef.cc
+++ b/crawl-ref/source/mapdef.cc
@@ -304,6 +304,8 @@ void level_range::reset()
bool level_range::matches(const level_id &lid) const
{
+ if (lid.level_type != LEVEL_DUNGEON)
+ return (false);
if (branch == NUM_BRANCHES)
return (matches(absdungeon_depth(lid.branch, lid.depth)));
else