summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-09 09:04:05 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-09 09:04:05 +0000
commitd164f117510f973ca900ec805c8404d9e21f3288 (patch)
treecbbb7bd11ad4cd57be3d38e18ef337a8f3119282
parent60d8e93b1adada2500c8f282bc31dd04b17b0935 (diff)
downloadcrawl-ref-d164f117510f973ca900ec805c8404d9e21f3288.tar.gz
crawl-ref-d164f117510f973ca900ec805c8404d9e21f3288.zip
Trunk->0.4 r6795: Fix bounds check for summon elemental.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6798 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/spells2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 7993961ffb..1d0ad655e4 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -1459,7 +1459,7 @@ bool cast_summon_elemental(int pow, god_type god,
&& (grd[ targ_x ][ targ_y ] == DNGN_ROCK_WALL
|| grd[ targ_x ][ targ_y ] == DNGN_CLEAR_ROCK_WALL))
{
- if (targ_x <= 6 || targ_x >= 74 || targ_y <= 6 || targ_y >= 64)
+ if (!in_bounds(targ_x, targ_y))
{
mpr("That wall won't yield to your beckoning.");
// XXX: Should this cost a turn?