From 7296afe57a7ea99996e083e646395f4f4be95648 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Tue, 10 Nov 2009 13:35:52 +0100 Subject: Remove inside_level_bounds. This was a weird mix of in_bounds and map_bounds (exclusive top-left, inclusive top-right). Replaced with in_bounds. --- crawl-ref/source/mon-behv.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 56dce671b0..6fd35d26d3 100644 --- a/crawl-ref/source/mon-behv.cc +++ b/crawl-ref/source/mon-behv.cc @@ -1594,7 +1594,7 @@ void handle_behaviour(monsters *mon) static bool _mons_check_foe(monsters *mon, const coord_def& p, bool friendly, bool neutral) { - if (!inside_level_bounds(p)) + if (!in_bounds(p)) return (false); if (!friendly && !neutral && p == you.pos() -- cgit v1.2.3-54-g00ecf