summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-util.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-07 18:07:55 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-07 18:07:55 +0000
commit4257d4e4ef09a35e6b31bdfb91b6146452d1bcef (patch)
treea356eaf24e39c63e2111c6ce71af0c0680d0dca7 /crawl-ref/source/spl-util.cc
parent0d60a36be89dc21a90fa687486a1c45030c29358 (diff)
downloadcrawl-ref-4257d4e4ef09a35e6b31bdfb91b6146452d1bcef.tar.gz
crawl-ref-4257d4e4ef09a35e6b31bdfb91b6146452d1bcef.zip
* Fix wizmode targetting commands not flushing messages correctly.
* Fix Sif Muna's randart book gifts never containing the Vehumet/Kiku special spells, as was originally intended. (Books found elsewhere will never contain the spells.) * In the highly unlikely case the player already has seen all spells don't crash when attempting to gift a book. Instead, simply make the acquirement fail, but be quiet about "the demon of the infinite void" if it was instigated by Sif Muna. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9368 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-util.cc')
-rw-r--r--crawl-ref/source/spl-util.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-util.cc b/crawl-ref/source/spl-util.cc
index 5d16fa60ab..c8bfdd0d94 100644
--- a/crawl-ref/source/spl-util.cc
+++ b/crawl-ref/source/spl-util.cc
@@ -118,8 +118,10 @@ void init_spell_descs(void)
if (data.flags & SPFLAG_TARGETING_MASK)
{
if (data.min_range <= -1 || data.max_range <= 0)
+ {
end(1, false, "targeted/directed spell '%s' has invalid range",
data.title);
+ }
}
#endif
@@ -980,7 +982,7 @@ static int _sandblast_range(int pow, bool real_cast)
int res = 1;
if (wielding_rocks() && (!real_cast || coinflip()))
- res = 2;
+ res = 2;
return (res);
}