summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index dcee293256..eee3987af6 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -691,8 +691,8 @@ static void _fire_monster_death_event(monsters *monster,
apply_to_level(
target,
true,
- target == level_id::current()?
- _slime_pit_unlock_onlevel : _slime_pit_unlock_offlevel );
+ target == level_id::current() ? _slime_pit_unlock_onlevel
+ : _slime_pit_unlock_offlevel);
}
}
}
@@ -1188,6 +1188,10 @@ void monster_die(monsters *monster, killer_type killer, int i, bool silent)
monster->set_transit( level_id(LEVEL_ABYSS) );
in_transit = true;
monster->destroy_inventory();
+ // Make monster stop patrolling and/or travelling.
+ monster->patrol_point = coord_def(0,0);
+ monster->travel_path.clear();
+ monster->travel_target = MTRAV_NONE;
break;
case KILL_DISMISSED: