diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-22 11:25:01 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-22 11:25:01 +0000 |
commit | f00872b7a53d4b7d0aa8eb8b769f88b9abe5f830 (patch) | |
tree | f0c6e0522d23a32ffcb2599fb33cf6b02c2f758b /crawl-ref/source/tags.cc | |
parent | 50dd7b84736b4c1c87908cae1030419f773e638d (diff) | |
download | crawl-ref-f00872b7a53d4b7d0aa8eb8b769f88b9abe5f830.tar.gz crawl-ref-f00872b7a53d4b7d0aa8eb8b769f88b9abe5f830.zip |
[2615112] Fix portal vaults sharing ghosts. Ghosts are now saved into bones.XXX where XXX is set from the 'dstext' property of the portal, or to the first three letters of the 'dst' property.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9148 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r-- | crawl-ref/source/tags.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index 071398da15..b494a0031d 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -846,6 +846,7 @@ static void tag_construct_you(writer &th) marshallString(th, you.level_type_name_abbrev); marshallString(th, you.level_type_origin); marshallString(th, you.level_type_tag); + marshallString(th, you.level_type_ext); marshallByte(th, you.entry_cause); marshallByte(th, you.entry_cause_god); marshallByte(th, you.synch_time); @@ -1264,6 +1265,9 @@ static void tag_read_you(reader &th, char minorVersion) you.level_type_name_abbrev = unmarshallString(th); you.level_type_origin = unmarshallString(th); you.level_type_tag = unmarshallString(th); + + if (minorVersion >= TAG_MINOR_PORTEXT) + you.level_type_ext = unmarshallString(th); } you.entry_cause = static_cast<entry_cause_type>( unmarshallByte(th) ); |