summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tags.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-10-26 00:48:14 -0700
committerMatthew Cline <zelgadis@sourceforge.net>2009-10-26 00:48:14 -0700
commit7448e4e9a942cc8ea64315ba3084541af8e6c8a2 (patch)
treee1ce97faaa13d64d47b3302abd2a55873582c4e9 /crawl-ref/source/tags.cc
parentc001f88140962520cb30bedffee39ac69724ad8f (diff)
downloadcrawl-ref-7448e4e9a942cc8ea64315ba3084541af8e6c8a2.tar.gz
crawl-ref-7448e4e9a942cc8ea64315ba3084541af8e6c8a2.zip
FR 1837856: note vaults generated in dump
Include new dump section "vaults", which for game-end dumps (or any wizard-mode dumps) will include a list (by place) of all the vaults generated in the game. The savefile now includes a player-associated CrawlHashTable (you.props), which can be used for storing player information which doesn't need to be accessed efficiently.
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r--crawl-ref/source/tags.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc
index 91fe0c0643..ab02149019 100644
--- a/crawl-ref/source/tags.cc
+++ b/crawl-ref/source/tags.cc
@@ -1020,6 +1020,8 @@ static void tag_construct_you(writer &th)
std::string revision = "Git:";
revision += Version::Long();
marshallString(th, revision);
+
+ you.props.write(th);
}
static void tag_construct_you_items(writer &th)
@@ -1468,6 +1470,12 @@ static void tag_read_you(reader &th, char minorVersion)
std::string rev_str = unmarshallString(th);
UNUSED(rev_str);
}
+
+ if (minorVersion >= TAG_MINOR_YOU_PROP)
+ {
+ you.props.clear();
+ you.props.read(th);
+ }
}
static void tag_read_you_items(reader &th, char minorVersion)