summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-10 13:35:52 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-10 13:57:07 +0100
commit7296afe57a7ea99996e083e646395f4f4be95648 (patch)
tree36575e7d627cd018a177cea6357c86f3f9c8fe09 /crawl-ref/source/spells3.cc
parent9ea804adc31235b649583d839f409c2fd257fdfd (diff)
downloadcrawl-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/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index b95e2fc73a..52b848dbdd 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -1712,7 +1712,7 @@ bool entomb(int powc)
// Otherwise, return -1.
static int _inside_circle(const coord_def& where, int radius)
{
- if (!inside_level_bounds(where))
+ if (!in_bounds(where))
return -1;
const coord_def ep = grid2view(where);
@@ -1736,7 +1736,7 @@ bool remove_sanctuary(bool did_attack)
if (env.sanctuary_time)
env.sanctuary_time = 0;
- if (!inside_level_bounds(env.sanctuary_pos))
+ if (!in_bounds(env.sanctuary_pos))
return (false);
const int radius = 5;