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/spells2.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/spells2.cc') diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index e04e780531..09ccfee26b 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -1244,7 +1244,7 @@ bool cast_summon_elemental(int pow, god_type god, dist smove; const int dur = std::min(2 + (random2(pow) / 5), 6); - const bool any_elemental = (restricted_type == MONS_PROGRAM_BUG); + const bool any_elemental = (restricted_type == MONS_NO_MONSTER); while (true) { @@ -1795,7 +1795,7 @@ int fungal_bloom() MHITNOT, MG_FORCE_PLACE, GOD_NO_GOD, - MONS_PROGRAM_BUG, + MONS_NO_MONSTER, 0, colour), false); -- cgit v1.2.3-54-g00ecf