summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-29 13:31:45 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-29 13:31:45 +0000
commit8c38a749feba7593d146377ac6e4b090f8228e64 (patch)
tree6669be5ff4f09369c112a9414601eed81edc9d25 /crawl-ref/source/monstuff.cc
parentd1a6e695915d4d649f3517f4c131f940c7aacc8f (diff)
downloadcrawl-ref-8c38a749feba7593d146377ac6e4b090f8228e64.tar.gz
crawl-ref-8c38a749feba7593d146377ac6e4b090f8228e64.zip
Fix good random secondary choices during character selection.
Re-enable quivering with '(' - still buggy, and I'm trying to work out why, but at least it works for some ammo now. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6218 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index de3cc7d7b5..521fa5ef7d 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -2054,7 +2054,7 @@ void behaviour_event(monsters *mon, int event, int src,
case ME_SCARE:
{
- const bool flee_sanct = !mons_wont_attack(mon)
+ const bool flee_sanct = !mons_wont_attack(mon)
&& is_sanctuary(mon->x, mon->y);
// Berserking monsters don't flee, unless it's from sanctuary.
@@ -3233,6 +3233,7 @@ static void _handle_behaviour(monsters *mon)
if (need_target && patrolling)
{
need_target = false;
+
if (!_choose_random_patrol_target_grid(mon))
{
// If we couldn't find a target that is within easy