diff options
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-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? |