summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stuff.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/stuff.cc')
-rw-r--r--crawl-ref/source/stuff.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc
index 802ad57cf1..68b31a0e0d 100644
--- a/crawl-ref/source/stuff.cc
+++ b/crawl-ref/source/stuff.cc
@@ -243,7 +243,7 @@ static bool tag_follower_at(const coord_def &pos)
if (fmenv->speed_increment < 50)
return (false);
- // only friendly monsters, or those actively seeking the
+ // Only friendly monsters, or those actively seeking the
// player, will follow up/down stairs.
if (!mons_friendly(fmenv)
&& (fmenv->behaviour != BEH_SEEK || fmenv->foe != MHITYOU))
@@ -266,9 +266,14 @@ static bool tag_follower_at(const coord_def &pos)
}
}
- // monster is chasing player through stairs:
+ // Monster is chasing player through stairs.
fmenv->flags |= MF_TAKING_STAIRS;
+ // Clear patrolling/travel markers.
+ fmenv->patrol_point = coord_def(0,0);
+ fmenv->travel_path.clear();
+ fmenv->travel_target = MTRAV_NONE;
+
#if DEBUG_DIAGNOSTICS
mprf(MSGCH_DIAGNOSTICS, "%s is marked for following.",
fmenv->name(DESC_CAP_THE, true).c_str() );