diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-10-26 00:48:14 -0700 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-10-26 00:48:14 -0700 |
commit | 7448e4e9a942cc8ea64315ba3084541af8e6c8a2 (patch) | |
tree | e1ce97faaa13d64d47b3302abd2a55873582c4e9 /crawl-ref/source/tags.cc | |
parent | c001f88140962520cb30bedffee39ac69724ad8f (diff) | |
download | crawl-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.cc | 8 |
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) |