diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-16 14:18:46 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-16 14:18:46 +0000 |
commit | cfa1009c4b69e7f42264d9b8d3e1ead97239e12f (patch) | |
tree | 65f12771c31b83405ad1d7e8b26097ce7b3d6497 /crawl-ref | |
parent | c875517f374efb16ab9f32cbd48fcac43c0d4c23 (diff) | |
download | crawl-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')
-rw-r--r-- | crawl-ref/source/misc.cc | 3 |
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; |