summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-behv.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-13 15:37:34 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-13 15:47:44 +0100
commite902e699c6ff234e6b04f6d0a8f4190548db3e8f (patch)
treec7c20f65c33be7a04963767a67ec6c65fb1503c7 /crawl-ref/source/mon-behv.cc
parent934725f25eae11ced143d86d271ef43d7da83470 (diff)
downloadcrawl-ref-e902e699c6ff234e6b04f6d0a8f4190548db3e8f.tar.gz
crawl-ref-e902e699c6ff234e6b04f6d0a8f4190548db3e8f.zip
Change arena foe check to assert.
Diffstat (limited to 'crawl-ref/source/mon-behv.cc')
-rw-r--r--crawl-ref/source/mon-behv.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-behv.cc b/crawl-ref/source/mon-behv.cc
index 6868d90386..01be99300a 100644
--- a/crawl-ref/source/mon-behv.cc
+++ b/crawl-ref/source/mon-behv.cc
@@ -1041,8 +1041,7 @@ void handle_behaviour(monsters *mon)
}
// Make sure monsters are not targetting the player in arena mode.
- if (crawl_state.arena && mon->foe == MHITYOU)
- mon->foe = MHITNOT;
+ ASSERT(!(crawl_state.arena && mon->foe == MHITYOU));
if (mons_wall_shielded(mon) && cell_is_solid(mon->pos()))
{