summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-25 19:43:39 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-25 19:43:39 +0000
commita9b549f307cc59d71aac975e207f1203ebdff489 (patch)
tree41af85f2160f19e2fe6144c00bdd68386e31eae2 /crawl-ref/source/monstuff.cc
parentdd016fa36134c00a8c1f919aba25b872bcba4751 (diff)
downloadcrawl-ref-a9b549f307cc59d71aac975e207f1203ebdff489.tar.gz
crawl-ref-a9b549f307cc59d71aac975e207f1203ebdff489.zip
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
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc4
1 files changed, 2 insertions, 2 deletions
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<int>(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;
}
}