summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-10-27 20:25:02 -0700
committerMatthew Cline <zelgadis@sourceforge.net>2009-10-27 20:25:02 -0700
commit12f74fc875b1de8089676ee8e78461f75dce6b00 (patch)
treeeddd66768492bc9cbd3e399611d539d5179b9b27 /crawl-ref/source/spells1.cc
parentd45dd6b1991b9c403bc7b9b2c9180ba8a6c54753 (diff)
downloadcrawl-ref-12f74fc875b1de8089676ee8e78461f75dce6b00.tar.gz
crawl-ref-12f74fc875b1de8089676ee8e78461f75dce6b00.zip
(MONS_PROGRAM_BUG || -1) --> MONS_NO_MONSTER
Change MONS_PROGRAM_BUG to MONS_NO_MONSTER when "no monster" is what was meant. Now all instances of MONS_PROGRAM_BUG should indicated some sort of failure or error. Also, fixed some places which were still using -1 instead of MONS_NO_MONSTER.
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r--crawl-ref/source/spells1.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index e2c5f71e5f..96a64f7f24 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -1100,7 +1100,7 @@ void abjuration(int pow)
{
monsters* const monster = &menv[i];
- if (monster->type == -1 || !mons_near(monster))
+ if (monster->type == MONS_NO_MONSTER || !mons_near(monster))
continue;
if (mons_wont_attack(monster))