diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-10-11 10:21:14 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-10-11 10:21:14 +0000 |
commit | ac38a5b60508bcd3b0a6a3537469513c94b79130 (patch) | |
tree | 7f69090779cdc392850918ef13280bc607da0927 /crawl-ref/source/tags.cc | |
parent | c98da4f51cec16b498acc6f9e4b52a225dfd61c4 (diff) | |
download | crawl-ref-ac38a5b60508bcd3b0a6a3537469513c94b79130.tar.gz crawl-ref-ac38a5b60508bcd3b0a6a3537469513c94b79130.zip |
Fix 2158749: Sage information not getting saved (oops.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7209 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 b531fb8b22..dcb1435da6 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -848,6 +848,8 @@ static void tag_construct_you(writer &th) marshallByte(th, you.is_undead); marshallByte(th, you.special_wield); marshallByte(th, you.berserk_penalty); + marshallShort(th, you.sage_bonus_skill); + marshallLong(th, you.sage_bonus_degree); marshallByte(th, you.level_type); marshallString(th, you.level_type_name); marshallByte(th, you.entry_cause); @@ -1236,6 +1238,8 @@ static void tag_read_you(reader &th, char minorVersion) you.is_undead = static_cast<undead_state_type>(unmarshallByte(th)); you.special_wield = unmarshallByte(th); you.berserk_penalty = unmarshallByte(th); + you.sage_bonus_skill = static_cast<skill_type>(unmarshallShort(th)); + you.sage_bonus_degree = unmarshallLong(th); you.level_type = static_cast<level_area_type>( unmarshallByte(th) ); you.level_type_name = unmarshallString(th); you.entry_cause = static_cast<entry_cause_type>( unmarshallByte(th) ); |