From a6b399eae4cd72f6bc2f077a694ecf5ef6b75ffc Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 12 Jun 2008 03:57:11 +0000 Subject: Overhaul god gift handling again so that we can tell which god sent which gift. There was an unused god parameter in the monsters struct, which was probably intended to hold which god a monster worshipped. I've used it as an indicator of which god sent the monster, under the assumption that gods would send their own worshippers as gifts. (I hope this isn't an abuse of it.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5748 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/monplace.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crawl-ref/source/monplace.cc') diff --git a/crawl-ref/source/monplace.cc b/crawl-ref/source/monplace.cc index b007d5374b..3b0c2bab3c 100644 --- a/crawl-ref/source/monplace.cc +++ b/crawl-ref/source/monplace.cc @@ -1874,8 +1874,7 @@ int mons_place( mgen_data mg ) monsters *creation = &menv[mid]; - if (mg.flags & MG_GOD_GIFT) - creation->flags |= MF_GOD_GIFT; + creation->god = mg.god; // Look at special cases: CHARMED, FRIENDLY, NEUTRAL, GOOD_NEUTRAL, // HOSTILE. -- cgit v1.2.3-54-g00ecf