summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.cc
diff options
context:
space:
mode:
authorNicholas Feinberg <pleasingfung@gmail.com>2014-05-27 08:03:20 -0700
committerNicholas Feinberg <pleasingfung@gmail.com>2014-05-27 08:03:20 -0700
commit45de02d5c8f3eb0edb90fb011ffaa4a12856cacd (patch)
tree7402e7a10c8f3aec5d2ad044c45086529644d058 /crawl-ref/source/spl-book.cc
parent74d0bc9161e136e9528a3b33441916826da7ee84 (diff)
downloadcrawl-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.cc2
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();