summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-16 14:18:46 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-16 14:18:46 +0000
commitcfa1009c4b69e7f42264d9b8d3e1ead97239e12f (patch)
tree65f12771c31b83405ad1d7e8b26097ce7b3d6497 /crawl-ref/source
parentc875517f374efb16ab9f32cbd48fcac43c0d4c23 (diff)
downloadcrawl-ref-cfa1009c4b69e7f42264d9b8d3e1ead97239e12f.tar.gz
crawl-ref-cfa1009c4b69e7f42264d9b8d3e1ead97239e12f.zip
Remove redundant sanity check.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3672 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r--crawl-ref/source/misc.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index d4f4de4b2e..856f91ded9 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -2117,9 +2117,6 @@ int mons_inside_circle(int posx, int posy, int radius)
if (!inside_level_bounds(posx, posy))
return -1;
- if (posx < 0 || posx >= GXM || posy < 0 || posy >= GYM)
- return -1;
-
int dist = distance(posx, posy, you.x_pos, you.y_pos);
if (dist > radius*radius)
return -1;