summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/exclude.cc
diff options
context:
space:
mode:
authorDarshan Shaligram <dshaligram@users.sourceforge.net>2010-06-06 03:25:41 +0530
committerDarshan Shaligram <dshaligram@users.sourceforge.net>2010-06-06 03:25:41 +0530
commit38cd069b01c4e3a4fe7705e6c00c7ea197e9b95d (patch)
tree890d4462cfb79d9e2693f902c0b298828a8036aa /crawl-ref/source/exclude.cc
parentc13aec16bd96a485bb69f351258744ca320436ae (diff)
downloadcrawl-ref-38cd069b01c4e3a4fe7705e6c00c7ea197e9b95d.tar.gz
crawl-ref-38cd069b01c4e3a4fe7705e6c00c7ea197e9b95d.zip
Add support for vaults in the Abyss, save vault metadata in the level save.
Vault metadata that was previously discarded at level generation time is now saved in the level file instead. This can be quite costly (~30k per level) if the level has large vaults. The abyss can now use vaults as general scenery (tagged "abyss") or to place the rune ("abyss_rune"). abyss.des currently includes stub vaults for testing.
Diffstat (limited to 'crawl-ref/source/exclude.cc')
-rw-r--r--crawl-ref/source/exclude.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/exclude.cc b/crawl-ref/source/exclude.cc
index f53a90717d..e5a3044594 100644
--- a/crawl-ref/source/exclude.cc
+++ b/crawl-ref/source/exclude.cc
@@ -649,8 +649,7 @@ void unmarshallExcludes(reader& inf, char minorVersion, exclude_set &excludes)
{
for (int i = 0; i < nexcludes; ++i)
{
- coord_def c;
- unmarshallCoord(inf, c);
+ const coord_def c = unmarshallCoord(inf);
const int radius = unmarshallShort(inf);
const bool autoexcl = unmarshallBoolean(inf);
const std::string desc = unmarshallString(inf);