diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2010-10-03 22:24:15 -0500 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2010-10-03 22:24:15 -0500 |
commit | 71a15ff25c66921c835c65d4ac43ffa4c42d6d5a (patch) | |
tree | 7c53f8a290a6bdc09f325aaef95d197babe06714 /crawl-ref/source/attitude-change.cc | |
parent | 6b8b890d808ad979a3cad65fef2946bd8caa1b9b (diff) | |
download | crawl-ref-71a15ff25c66921c835c65d4ac43ffa4c42d6d5a.tar.gz crawl-ref-71a15ff25c66921c835c65d4ac43ffa4c42d6d5a.zip |
Remove now-unnecessary checks regarding mons_make_god_gift().
It no longer asserts, so e.g. the monster's god no longer needs to be
manually unset before calling it.
Diffstat (limited to 'crawl-ref/source/attitude-change.cc')
-rw-r--r-- | crawl-ref/source/attitude-change.cc | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/crawl-ref/source/attitude-change.cc b/crawl-ref/source/attitude-change.cc index 256b04736a..d4a0dc7e8c 100644 --- a/crawl-ref/source/attitude-change.cc +++ b/crawl-ref/source/attitude-change.cc @@ -485,11 +485,6 @@ void beogh_convert_orc(monster* orc, bool emergency, // become hostile later on, it won't count as a good kill. orc->flags |= MF_NO_REWARD; - // Prevent assertion if the orc was previously worshipping a - // different god, rather than already worshipping Beogh or being an - // atheist. - orc->god = GOD_NO_GOD; - mons_make_god_gift(orc, GOD_BEOGH); if (orc->is_patrolling()) @@ -554,15 +549,7 @@ static void _jiyva_convert_slime(monster* slime) slime->name(DESC_CAP_THE).c_str()); } - // Prevent assertion if the slime was previously worshipping a - // different god, rather than already worshipping Jiyva or being an - // atheist. - slime->god = GOD_NO_GOD; - - // Don't trigger an assert in mons_make_god_gift - if (testbits(slime->flags, MF_GOD_GIFT)) - slime->flags &= ~MF_GOD_GIFT; - mons_make_god_gift(slime, GOD_JIYVA); + mons_att_changed(slime); } |