summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tags.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-01 04:53:51 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-01 04:53:51 +0000
commit1c4fa235a3922a46c773e1e2887a32a7646eb010 (patch)
tree4b8447a047b5ca6122560af4a1bb2e762a6782d4 /crawl-ref/source/tags.cc
parent03c7c53863cc5f7e07455521e5f9b8f274f2398d (diff)
downloadcrawl-ref-1c4fa235a3922a46c773e1e2887a32a7646eb010.tar.gz
crawl-ref-1c4fa235a3922a46c773e1e2887a32a7646eb010.zip
Made altar inscriptions persistent (in a very hacky way.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1154 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r--crawl-ref/source/tags.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc
index e64d7460d6..fbddb4c692 100644
--- a/crawl-ref/source/tags.cc
+++ b/crawl-ref/source/tags.cc
@@ -830,6 +830,7 @@ static void tag_construct_you(struct tagHeader &th)
// you.magic_contamination 05/03/05
marshallShort(th, you.magic_contamination);
+ marshallString(th, you.last_altar_inscription.c_str(), 80);
}
static void tag_construct_you_items(struct tagHeader &th)
@@ -1136,6 +1137,8 @@ static void tag_read_you(struct tagHeader &th, char minorVersion)
you.num_turns = unmarshallLong(th);
you.magic_contamination = unmarshallShort(th);
+ unmarshallString( th, buff, 80 );
+ you.last_altar_inscription = buff;
}
static void tag_read_you_items(struct tagHeader &th, char minorVersion)