summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tags.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-07 21:30:12 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-07 21:30:12 +0000
commit88476ef9569929088137a21fcb4822ae7a83431a (patch)
tree0d787ab237dd7e58fdecf051199721a803c072a6 /crawl-ref/source/tags.cc
parent100c7dd207a48003e0af4834d94244fbded71cf9 (diff)
downloadcrawl-ref-88476ef9569929088137a21fcb4822ae7a83431a.tar.gz
crawl-ref-88476ef9569929088137a21fcb4822ae7a83431a.zip
Properly save friendly pickup setting as a player variable (rather than
options). This increases the minor version by 1. Also, tidy up the checks of this settings. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4916 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r--crawl-ref/source/tags.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc
index 4a3f586a66..0fd7ecab8a 100644
--- a/crawl-ref/source/tags.cc
+++ b/crawl-ref/source/tags.cc
@@ -1008,6 +1008,9 @@ static void tag_construct_you(writer &th)
// minorVersion 3 starts here
you.m_quiver->save(th);
+
+ // minorVersion 7 starts here
+ marshallByte(th, you.friendly_pickup);
}
static void tag_construct_you_items(writer &th)
@@ -1394,6 +1397,9 @@ static void tag_read_you(reader &th, char minorVersion)
if (minorVersion >= TAG_MINOR_QUIVER)
you.m_quiver->load(th);
+
+ if (minorVersion >= TAG_MINOR_FPICKUP)
+ you.friendly_pickup = unmarshallByte(th);
}
static void tag_read_you_items(reader &th, char minorVersion)
@@ -2017,10 +2023,10 @@ static void tag_read_level_items(reader &th, char minorVersion)
static void unmarshall_monster(reader &th, monsters &m)
{
m.reset();
-
+
if (_tag_minor_version >= TAG_MINOR_MONNAM)
m.mname = unmarshallString(th, 100);
-
+
m.ac = unmarshallByte(th);
m.ev = unmarshallByte(th);
m.hit_dice = unmarshallByte(th);