summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-03 23:02:32 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-03 23:02:32 +0000
commit49815faa5cfe1cce614f4d2bbab9341613a662c5 (patch)
tree9bf29a86509e1cbbf39674875d832d080fb0bdda /crawl-ref/source/religion.cc
parent72aae92fdbbe1afa692ebe0bf9dc32e59ae9e368 (diff)
downloadcrawl-ref-49815faa5cfe1cce614f4d2bbab9341613a662c5.tar.gz
crawl-ref-49815faa5cfe1cce614f4d2bbab9341613a662c5.zip
[2070013]: newly created, animated, etc. friendly monsters now default to
'follow me' behaviour, rather than following your last command (even if was before they were summoned.) Their behaviour can still be changed by giving them commands, of course. The previous behaviour was clearly intentional so I'm not too sure about this change; feel free to revert if I'm missing something. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8886 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 7206d08bdc..31a2ccd18a 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -944,8 +944,7 @@ static int _yred_random_servants(int threshold, bool force_hostile = false)
how_many = 2 + random2(4);
mgen_data mg(mon, !force_hostile ? BEH_FRIENDLY : BEH_HOSTILE,
- 0, 0, you.pos(), !force_hostile ? you.pet_target : MHITYOU,
- 0, GOD_YREDELEMNUL);
+ 0, 0, you.pos(), MHITYOU, 0, GOD_YREDELEMNUL);
int created = 0;
if (force_hostile)
@@ -1562,7 +1561,7 @@ static void _beogh_blessing_reinforcement()
_delayed_monster(
mgen_data(follower_type, BEH_FRIENDLY, 0, 0,
- you.pos(), you.pet_target, 0, GOD_BEOGH),
+ you.pos(), MHITYOU, 0, GOD_BEOGH),
_beogh_reinf_callback);
}
}