diff options
author | Stefan O'Rear <stefanor@cox.net> | 2009-11-12 01:05:50 -0800 |
---|---|---|
committer | Stefan O'Rear <stefanor@cox.net> | 2009-11-12 01:05:50 -0800 |
commit | 0f338eb725f33ee68843fb3bc178bfd9bc65cb22 (patch) | |
tree | 6c4ef451572f2324f9f65ab8063c94e8f840bc2c /crawl-ref/source/tags.cc | |
parent | 9f7066eab03883b18610a629a3a84731cd26ca13 (diff) | |
download | crawl-ref-0f338eb725f33ee68843fb3bc178bfd9bc65cb22.tar.gz crawl-ref-0f338eb725f33ee68843fb3bc178bfd9bc65cb22.zip |
Add a CrawlHashTable to monster objects
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r-- | crawl-ref/source/tags.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index 4b5ab14ae8..0b99e3e2ff 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -1928,6 +1928,8 @@ static void marshall_monster(writer &th, const monsters &m) ASSERT(m.ghost.get()); marshallGhost(th, *m.ghost); } + + m.props.write(th); } static void tag_construct_level_monsters(writer &th) @@ -2246,6 +2248,12 @@ static void unmarshall_monster(reader &th, monsters &m) if (mons_is_ghost_demon(m.type)) m.set_ghost(unmarshallGhost(th, _tag_minor_version)); + if (_tag_minor_version >= TAG_MINOR_MON_PROP) + { + m.props.clear(); + m.props.read(th); + } + m.check_speed(); } |