summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tags.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-12-02 16:34:51 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-12-02 16:36:14 +0100
commite903323165daa65a5d646f0c061de9d60177b88a (patch)
treeb52d4794dfac358bcdfa895d68cfffc68e141dc4 /crawl-ref/source/tags.cc
parent472560d73f947309000c50e9c562a8ab7bb13d25 (diff)
downloadcrawl-ref-e903323165daa65a5d646f0c061de9d60177b88a.tar.gz
crawl-ref-e903323165daa65a5d646f0c061de9d60177b88a.zip
Get rid of you.synch_time.
Also, the check for whether to do the corresponding effects has been moved into effects.cc:handle_time.
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r--crawl-ref/source/tags.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc
index 5b04041c53..79af67c505 100644
--- a/crawl-ref/source/tags.cc
+++ b/crawl-ref/source/tags.cc
@@ -965,7 +965,6 @@ static void tag_construct_you(writer &th)
marshallString(th, you.level_type_ext);
marshallByte(th, you.entry_cause);
marshallByte(th, you.entry_cause_god);
- marshallByte(th, you.synch_time);
marshallLong(th, you.disease);
marshallByte(th, you.species);
@@ -1389,7 +1388,8 @@ static void tag_read_you(reader &th, char minorVersion)
you.entry_cause = static_cast<entry_cause_type>( unmarshallByte(th) );
you.entry_cause_god = static_cast<god_type>( unmarshallByte(th) );
- you.synch_time = unmarshallByte(th);
+ if (minorVersion < TAG_MINOR_SYNCH_TIME)
+ unmarshallByte(th);
if (minorVersion >= TAG_MINOR_DISEASE)
you.disease = unmarshallLong(th);
else