From 12f74fc875b1de8089676ee8e78461f75dce6b00 Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Tue, 27 Oct 2009 20:25:02 -0700 Subject: (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. --- crawl-ref/source/spells3.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/spells3.cc') diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index 64c27c7fa1..7ea2fff9b4 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -1218,7 +1218,7 @@ bool cast_twisted_resurrection(int pow, god_type god) 0, 0, you.pos(), MHITYOU, MG_FORCE_BEH, god, - MONS_PROGRAM_BUG, 0, colour)); + MONS_NO_MONSTER, 0, colour)); if (monster == -1) { @@ -2113,7 +2113,7 @@ bool recall(char type_recalled) { monster = &menv[loopy]; - if (monster->type == -1) + if (monster->type == MONS_NO_MONSTER) continue; if (!mons_friendly(monster)) -- cgit v1.2.3-54-g00ecf