diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-29 06:09:05 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-29 06:09:05 +0000 |
commit | 54a8ee37c5d6bee4ed77eef17bad080c0f81b175 (patch) | |
tree | 716c830d70191daf73308a8926f4095d7d7a75ae /crawl-ref/source/tags.cc | |
parent | f44df6134a719e58bb61f48c4d6d12089dd69cb8 (diff) | |
download | crawl-ref-54a8ee37c5d6bee4ed77eef17bad080c0f81b175.tar.gz crawl-ref-54a8ee37c5d6bee4ed77eef17bad080c0f81b175.zip |
Changed player attribute type from unsigned char to unsigned long. Breaks
savefile compatibility.
Keep track of how much gold the player has collected, spent at shops,
donated, and otherwise used (like at ziggurats) and include that info
in the misc section of the character dump file.
Place-holder for chaos spawn monster.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7683 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, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index 89642b4ce8..88e68d9120 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -958,7 +958,7 @@ static void tag_construct_you(writer &th) // how many attributes? marshallByte(th, NUM_ATTRIBUTES); for (j = 0; j < NUM_ATTRIBUTES; ++j) - marshallByte(th, you.attribute[j]); + marshallLong(th, you.attribute[j]); // Was: remembered quiver items. marshallByte(th, 0); @@ -1373,7 +1373,7 @@ static void tag_read_you(reader &th, char minorVersion) // how many attributes? count_c = unmarshallByte(th); for (j = 0; j < count_c; ++j) - you.attribute[j] = unmarshallByte(th); + you.attribute[j] = unmarshallLong(th); // old: quiver info. Discard it. count_c = unmarshallByte(th); |