From 5b7701dc9d19fdad4de1a64b41995d65c03b7df6 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Mon, 21 Dec 2009 01:43:19 +0100 Subject: Short-circuit behaviour_event(), projectiles are not supposed to behave. --- crawl-ref/source/mon-behv.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crawl-ref/source/mon-behv.cc') diff --git a/crawl-ref/source/mon-behv.cc b/crawl-ref/source/mon-behv.cc index aea54df3e6..98a1f3e853 100644 --- a/crawl-ref/source/mon-behv.cc +++ b/crawl-ref/source/mon-behv.cc @@ -680,6 +680,8 @@ void behaviour_event(monsters *mon, mon_event_type event, int src, ASSERT(src >= 0 && src <= MHITYOU); ASSERT(!crawl_state.arena || src != MHITYOU); ASSERT(in_bounds(src_pos) || src_pos.origin()); + if (mons_is_projectile(mon->type)) + return; // projectiles have no AI const beh_type old_behaviour = mon->behaviour; -- cgit v1.2.3-54-g00ecf