diff options
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r-- | crawl-ref/source/tags.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index 23b42b61da..91fe0c0643 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -944,6 +944,12 @@ static void tag_construct_you(writer &th) marshallByte(th, you.demon_pow[j]); } + marshallByte(th, 26); + for (j = 0; j < 26; j++) + { + marshallShort(th, you.demon_trait[j]); + } + // how many penances? marshallByte(th, MAX_NUM_GODS); for (i = 0; i < MAX_NUM_GODS; i++) @@ -1387,6 +1393,13 @@ static void tag_read_you(reader &th, char minorVersion) you.demon_pow[j] = unmarshallByte(th); } + if (minorVersion >= TAG_MINOR_DSTRAITS) + { + count_c = unmarshallByte(th); + for (j = 0; j < count_c; ++j) + you.demon_trait[j] = static_cast<mutation_type>(unmarshallShort(th)); + } + // how many penances? count_c = unmarshallByte(th); for (i = 0; i < count_c; i++) |