diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-25 20:36:42 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-25 20:36:42 +0000 |
commit | eca2b4e128181432115b49cb6371c51fa3221cec (patch) | |
tree | 6d0ae350754ba522d2848d4164696c1d476c4231 /crawl-ref/source/tags.cc | |
parent | 2184f5a98edb10e49ec9b7611601552fe686d737 (diff) | |
download | crawl-ref-eca2b4e128181432115b49cb6371c51fa3221cec.tar.gz crawl-ref-eca2b4e128181432115b49cb6371c51fa3221cec.zip |
Added you.level_type_name_abbrev, which on portal levels is stored in
notes (adding an overhead of 4 bytes per note) to be used as the place name
when displaying notes, like this:
34 | Zig:2 | Shot with a bolt by a yaktaur captain (26 damage)
Breaks savefile compatibility.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7621 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r-- | crawl-ref/source/tags.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index 409b35f06a..ae13c5c077 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -875,6 +875,7 @@ static void tag_construct_you(writer &th) marshallLong(th, you.sage_bonus_degree); marshallByte(th, you.level_type); marshallString(th, you.level_type_name); + marshallString(th, you.level_type_name_abbrev); marshallString(th, you.level_type_origin); marshallString(th, you.level_type_tag); marshallByte(th, you.entry_cause); @@ -1273,8 +1274,9 @@ static void tag_read_you(reader &th, char minorVersion) if (minorVersion >= TAG_MINOR_LUADGN) { - you.level_type_origin = unmarshallString(th); - you.level_type_tag = unmarshallString(th); + you.level_type_name_abbrev = unmarshallString(th); + you.level_type_origin = unmarshallString(th); + you.level_type_tag = unmarshallString(th); } you.entry_cause = static_cast<entry_cause_type>( unmarshallByte(th) ); |