summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-29 02:07:33 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-29 02:07:33 +0000
commitc4f5e14829647ea6d000b9cc9e5553579c0db929 (patch)
treec3396227044ed0c95a03bb5fb6e975bc25db6a03 /crawl-ref/source/monstuff.cc
parent937f36f4201f77026777adab83bf6759759b167d (diff)
downloadcrawl-ref-c4f5e14829647ea6d000b9cc9e5553579c0db929.tar.gz
crawl-ref-c4f5e14829647ea6d000b9cc9e5553579c0db929.zip
Faking falls through shaft traps for pacified monsters doesn't quite
work, as it doesn't use the proper target. Fix this by not marking pacified monsters for transit if they fall through shaft traps. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6194 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index d067665632..e28f9d28e0 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -2444,12 +2444,6 @@ static void _mons_indicate_level_exit(const monsters *mon, int x, int y)
}
else if (is_gate(grd[x][y]))
simple_monster_message(mon, " passes through the gate.");
- // Shaft traps.
- else if (trap_type_at_xy(x, y) == TRAP_SHAFT)
- {
- simple_monster_message(mon, " falls through a shaft!");
- grd[x][y] = trap_category(trap_type_at_xy(x, y));
- }
// Any place the monster can submerge.
else if (monster_can_submerge(mon, grd[x][y]))
{
@@ -3052,9 +3046,8 @@ static void _handle_behaviour(monsters *mon)
mon->travel_target = MTRAV_NONE;
}
- // If a pacified monster is leaving the level via
- // something other than a trap, and has reached its
- // goal, handle it here.
+ // If a pacified monster is leaving the level, and has
+ // reached its goal, handle it here.
if (isPacified && e_index != -1
&& mon->x == e[e_index].target.x
&& mon->y == e[e_index].target.y)