summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tags.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-17 21:04:04 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-17 21:04:04 +0000
commitd636d3368b6441379025477373212cd203fe16bf (patch)
treee21710f2ca920d456247f29ecfe7a49bbe10e160 /crawl-ref/source/tags.cc
parent04a7ba1ee47556dcdf4d7ce56ebb7596f66cebfb (diff)
downloadcrawl-ref-d636d3368b6441379025477373212cd203fe16bf.tar.gz
crawl-ref-d636d3368b6441379025477373212cd203fe16bf.zip
Simplify further.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10700 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r--crawl-ref/source/tags.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc
index 3b6c0ef4af..5db90d707d 100644
--- a/crawl-ref/source/tags.cc
+++ b/crawl-ref/source/tags.cc
@@ -1879,7 +1879,7 @@ static void marshall_monster(writer &th, const monsters &m)
marshallSpells(th, m.spells);
marshallByte(th, m.god);
- if (m.type == MONS_PLAYER_GHOST || m.type == MONS_PANDEMONIUM_DEMON)
+ if (mons_is_ghost_demon(m.type))
{
// *Must* have ghost field set.
ASSERT(m.ghost.get());
@@ -2191,7 +2191,7 @@ static void unmarshall_monster(reader &th, monsters &m)
m.god = static_cast<god_type>( unmarshallByte(th) );
- if (m.type == MONS_PLAYER_GHOST || m.type == MONS_PANDEMONIUM_DEMON)
+ if (mons_is_ghost_demon(m.type))
m.set_ghost(unmarshallGhost(th, _tag_minor_version));
m.check_speed();