diff options
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r-- | crawl-ref/source/spl-cast.cc | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index 61be1b39c5..ff54ef83dd 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -690,7 +690,7 @@ bool cast_a_spell(bool check_range) const int minRange = _get_dist_to_nearest_monster(); - int keyin = (check_range ? 0 : '?'); + int keyin = 0; while (true) { @@ -753,13 +753,17 @@ bool cast_a_spell(bool check_range) { // Abort if there are no hostiles within range, but flash the range // markers for about half a second. - Options.target_range = _calc_spell_range(spell); - viewwindow(true, false); mpr("There are no visible monsters within range! (Use <w>Z</w> to " "cast anyway.)"); - delay(500); - Options.target_range = 0; - viewwindow(true, false); + + if (Options.target_range != -1) + { + Options.target_range = _calc_spell_range(spell); + viewwindow(true, false); + delay(500); + Options.target_range = 0; + viewwindow(true, false); + } return (false); } |