summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-data.h
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-27 23:32:36 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-27 23:32:36 +0000
commitace80c93707ad15ca6253a1867766daa0c340d15 (patch)
treea18b3cb738cf46fd624487aac4d88aa7313c4a6f /crawl-ref/source/spl-data.h
parent61bc1cd16bda091d23a1d4d4744f01403377392c (diff)
downloadcrawl-ref-ace80c93707ad15ca6253a1867766daa0c340d15.tar.gz
crawl-ref-ace80c93707ad15ca6253a1867766daa0c340d15.zip
If a beam has range == -1 then set it to LOS_RADIUS and, in debug builds,
complain about it. Eventually turn this into an ASSERT when all code that makes this assumption is caught and fixed. If beam.chose_ray is true and source is still the default then change source to ray.pos() Fix Banishment and Dig having range -1. Sanity check spell definitions at startup in init_spell_descs() git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7996 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-data.h')
-rw-r--r--crawl-ref/source/spl-data.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-data.h b/crawl-ref/source/spl-data.h
index 6bf21a8484..4197057f84 100644
--- a/crawl-ref/source/spl-data.h
+++ b/crawl-ref/source/spl-data.h
@@ -317,7 +317,7 @@
SPFLAG_DIR_OR_TARGET | SPFLAG_NOT_SELF | SPFLAG_NEUTRAL,
4,
200,
- -1, -1,
+ LOS_RADIUS, LOS_RADIUS,
0,
NULL,
false,
@@ -1413,7 +1413,7 @@
SPFLAG_DIR_OR_TARGET | SPFLAG_UNHOLY,
4,
200,
- -1, -1,
+ LOS_RADIUS, LOS_RADIUS,
0,
NULL,
true,
@@ -2907,7 +2907,7 @@
SPELL_NO_SPELL, "nonexistent spell",
0,
SPFLAG_TESTING,
- 0,
+ 1,
0,
-1, -1,
0,