summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/maps.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-01 16:20:14 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-01 16:20:14 +0000
commitfcac38d55bb7edbc230723166daf079c56f6736e (patch)
tree06b15c64f65d497dd719abd5189af3d8394c5f08 /crawl-ref/source/maps.cc
parent66e1e32d8164d27c9491b638d5344c527b91a4bc (diff)
downloadcrawl-ref-fcac38d55bb7edbc230723166daf079c56f6736e.tar.gz
crawl-ref-fcac38d55bb7edbc230723166daf079c56f6736e.zip
Added extra entry vaults and option to load them.
Undead should not drown in deep water. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@970 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/maps.cc')
-rw-r--r--crawl-ref/source/maps.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/maps.cc b/crawl-ref/source/maps.cc
index 4994fc5a69..7df752a3e8 100644
--- a/crawl-ref/source/maps.cc
+++ b/crawl-ref/source/maps.cc
@@ -376,6 +376,15 @@ void read_maps()
{
parse_maps( lc_desfile = datafile_path( "splev.des" ) );
parse_maps( lc_desfile = datafile_path( "vaults.des" ) );
+
+ for (int i = 0, size = Options.extra_levels.size(); i < size; ++i)
+ {
+ lc_desfile = datafile_path( Options.extra_levels[i] + ".des", false );
+ if (lc_desfile.empty())
+ continue;
+
+ parse_maps( lc_desfile );
+ }
}
void add_parsed_map( const map_def &md )