From ac38a5b60508bcd3b0a6a3537469513c94b79130 Mon Sep 17 00:00:00 2001 From: haranp Date: Sat, 11 Oct 2008 10:21:14 +0000 Subject: 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 --- crawl-ref/source/tags.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/tags.cc') 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(unmarshallByte(th)); you.special_wield = unmarshallByte(th); you.berserk_penalty = unmarshallByte(th); + you.sage_bonus_skill = static_cast(unmarshallShort(th)); + you.sage_bonus_degree = unmarshallLong(th); you.level_type = static_cast( unmarshallByte(th) ); you.level_type_name = unmarshallString(th); you.entry_cause = static_cast( unmarshallByte(th) ); -- cgit v1.2.3-54-g00ecf