diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-09 11:08:36 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-09 11:08:36 +0000 |
commit | 240d458d718fcae5faaffb6d49ee0da27b585465 (patch) | |
tree | 205bfd43fcf2eea3abf79e4ceb8f04599b1147ab /crawl-ref/source/maps.cc | |
parent | 2517b1cf2451cab3e9466a8b85623ccbafc48fdb (diff) | |
download | crawl-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/maps.cc')
-rw-r--r-- | crawl-ref/source/maps.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/maps.cc b/crawl-ref/source/maps.cc index 8e0c9f6864..089d616b2e 100644 --- a/crawl-ref/source/maps.cc +++ b/crawl-ref/source/maps.cc @@ -379,6 +379,11 @@ const map_def *map_by_index(int index) return &vdefs[index]; } +int map_count() +{ + return (vdefs.size()); +} + ///////////////////////////////////////////////////////////////////////////// // Reading maps from .des files. |