summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tags.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r--crawl-ref/source/tags.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc
index cb460903fb..520e02fc02 100644
--- a/crawl-ref/source/tags.cc
+++ b/crawl-ref/source/tags.cc
@@ -837,6 +837,7 @@ static void tag_construct_you(writer &th)
marshallByte(th, you.where_are_you);
marshallByte(th, you.char_direction);
marshallByte(th, you.opened_zot);
+ marshallByte(th, you.royal_jelly_dead);
marshallByte(th, you.your_level);
marshallByte(th, you.is_undead);
marshallShort(th, you.unrand_reacts);
@@ -1252,9 +1253,13 @@ static void tag_read_you(reader &th, char minorVersion)
you.max_level = unmarshallByte(th);
you.where_are_you = static_cast<branch_type>( unmarshallByte(th) );
you.char_direction = static_cast<game_direction_type>(unmarshallByte(th));
+
if (minorVersion >= TAG_MINOR_ZOT_OPEN)
you.opened_zot = (bool) unmarshallByte(th);
+ if (minorVersion >= TAG_MINOR_JELLY)
+ you.royal_jelly_dead = (bool) unmarshallByte(th);
+
you.your_level = unmarshallByte(th);
you.is_undead = static_cast<undead_state_type>(unmarshallByte(th));
you.unrand_reacts = unmarshallShort(th);