diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-10 13:35:52 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-10 13:57:07 +0100 |
commit | 7296afe57a7ea99996e083e646395f4f4be95648 (patch) | |
tree | 36575e7d627cd018a177cea6357c86f3f9c8fe09 /crawl-ref/source/mon-util.cc | |
parent | 9ea804adc31235b649583d839f409c2fd257fdfd (diff) | |
download | crawl-ref-7296afe57a7ea99996e083e646395f4f4be95648.tar.gz crawl-ref-7296afe57a7ea99996e083e646395f4f4be95648.zip |
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.
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r-- | crawl-ref/source/mon-util.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index 29bbfa53db..233c22368b 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -33,7 +33,6 @@ #include "state.h" #include "stuff.h" #include "terrain.h" -#include "view.h" #include "shout.h" //jmf: moved from inside function @@ -2008,7 +2007,7 @@ bool mons_is_influenced_by_sanctuary(const monsters *m) bool mons_is_fleeing_sanctuary(const monsters *m) { return (mons_is_influenced_by_sanctuary(m) - && inside_level_bounds(env.sanctuary_pos) + && in_bounds(env.sanctuary_pos) && (m->flags & MF_FLEEING_FROM_SANCTUARY)); } |