summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monplace.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-29 21:43:06 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-29 21:43:06 +0000
commit47b61a2032d35bb95e9394eca73ca60d1c976abb (patch)
treeb98869c429545fb51e3a1bf36128289cc8220174 /crawl-ref/source/monplace.cc
parentcf5a7d069c6c1e8980beb9e1132a4178417a7d38 (diff)
downloadcrawl-ref-47b61a2032d35bb95e9394eca73ca60d1c976abb.tar.gz
crawl-ref-47b61a2032d35bb95e9394eca73ca60d1c976abb.zip
Mark created/summoned god gifts as MF_GOD_GIFT, not just convereted orcs
(oops). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8023 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monplace.cc')
-rw-r--r--crawl-ref/source/monplace.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/monplace.cc b/crawl-ref/source/monplace.cc
index 514701331a..62c8cb5df3 100644
--- a/crawl-ref/source/monplace.cc
+++ b/crawl-ref/source/monplace.cc
@@ -993,10 +993,11 @@ static int _place_monster_aux( const mgen_data &mg,
else
define_monster(id);
- // Give priestly monsters a god (unless the monster is a god gift, in
- // which case its god will be set elsewhere).
- if (mg.god == GOD_NO_GOD &&
- mons_class_flag(mg.cls, M_PRIEST))
+ // Is it a god gift?
+ if (mg.god != GOD_NO_GOD)
+ menv[id].flags |= MF_GOD_GIFT;
+ // Not a god gift, give priestly monsters a god.
+ else if ( mons_class_flag(mg.cls, M_PRIEST))
{
switch(mons_genus(mg.cls))
{