From d636d3368b6441379025477373212cd203fe16bf Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 17 Sep 2009 21:04:04 +0000 Subject: Simplify further. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10700 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/tags.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/tags.cc') 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( 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(); -- cgit v1.2.3-54-g00ecf