From d164f117510f973ca900ec805c8404d9e21f3288 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sat, 9 Aug 2008 09:04:05 +0000 Subject: 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 --- crawl-ref/source/spells2.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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? -- cgit v1.2.3-54-g00ecf