From a9b549f307cc59d71aac975e207f1203ebdff489 Mon Sep 17 00:00:00 2001 From: haranp Date: Sun, 25 Jan 2009 19:43:39 +0000 Subject: Scroll of vulnerability shouldn't annoy friendlies. Don't train stealth on unseen monsters. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8747 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/monstuff.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/monstuff.cc') diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index a8436b306d..328a02357e 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -871,7 +871,7 @@ static void _mummy_curse(monsters* monster, killer_type killer, int index) else { // Mummies committing suicide don't cause a death curse. - if (index == static_cast(monster_index(monster))) + if (index == monster->mindex()) return; target = &menv[index]; } @@ -4220,7 +4220,7 @@ static void _handle_behaviour(monsters *mon) if (mon->behaviour == BEH_FLEE) { // Monster is safe, so stay put. - mon->target.set(mon->pos().x, mon->pos().y); + mon->target = mon->pos(); mon->foe = MHITNOT; } } -- cgit v1.2.3-54-g00ecf