diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-08-09 09:04:05 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-08-09 09:04:05 +0000 |
commit | d164f117510f973ca900ec805c8404d9e21f3288 (patch) | |
tree | cbbb7bd11ad4cd57be3d38e18ef337a8f3119282 | |
parent | 60d8e93b1adada2500c8f282bc31dd04b17b0935 (diff) | |
download | crawl-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.cc | 2 |
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? |