diff options
author | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-05-27 08:03:20 -0700 |
---|---|---|
committer | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-05-27 08:03:20 -0700 |
commit | 45de02d5c8f3eb0edb90fb011ffaa4a12856cacd (patch) | |
tree | 7402e7a10c8f3aec5d2ad044c45086529644d058 /crawl-ref/source/spl-book.cc | |
parent | 74d0bc9161e136e9528a3b33441916826da7ee84 (diff) | |
download | crawl-ref-45de02d5c8f3eb0edb90fb011ffaa4a12856cacd.tar.gz crawl-ref-45de02d5c8f3eb0edb90fb011ffaa4a12856cacd.zip |
Remove an unused parameter.
With 4ad890b14, check_range was unused again. It can easily
be re-added with needed, though I'm not fond of the duplication
with the checks in cast_a_spell().
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r-- | crawl-ref/source/spl-book.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc index b5c26c0825..897251d521 100644 --- a/crawl-ref/source/spl-book.cc +++ b/crawl-ref/source/spl-book.cc @@ -1401,7 +1401,7 @@ int rod_spell(int rod, bool check_range) // All checks passed, we can cast the spell. if (you.confused()) random_uselessness(); - else if (your_spells(spell, power, false, false) + else if (your_spells(spell, power, false) == SPRET_ABORT) { crawl_state.zero_turns_taken(); |