summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-stuff.cc
diff options
context:
space:
mode:
authorStefan O'Rear <stefanor@cox.net>2009-12-28 01:52:41 -0800
committerStefan O'Rear <stefanor@cox.net>2009-12-28 02:23:13 -0800
commit4bd11a2119ce0fd7f137233e16cd7f745c13a2dd (patch)
tree0ffe65e163f3bab8680bc44f278a9e3397891a35 /crawl-ref/source/mon-stuff.cc
parent1f482e4025a81d46a44479d85c53daa503cb5a11 (diff)
downloadcrawl-ref-4bd11a2119ce0fd7f137233e16cd7f745c13a2dd.tar.gz
crawl-ref-4bd11a2119ce0fd7f137233e16cd7f745c13a2dd.zip
Rename MF_CREATED_FRIENDLY to MF_NO_REWARD, since that's all it's used for these days.
Diffstat (limited to 'crawl-ref/source/mon-stuff.cc')
-rw-r--r--crawl-ref/source/mon-stuff.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-stuff.cc b/crawl-ref/source/mon-stuff.cc
index 730fb54ef2..7a85194ea2 100644
--- a/crawl-ref/source/mon-stuff.cc
+++ b/crawl-ref/source/mon-stuff.cc
@@ -595,7 +595,7 @@ static void _give_adjusted_experience(monsters *monster, killer_type killer,
const int experience = exper_value(monster);
const bool created_friendly =
- testbits(monster->flags, MF_CREATED_FRIENDLY);
+ testbits(monster->flags, MF_NO_REWARD);
const bool was_neutral = testbits(monster->flags, MF_WAS_NEUTRAL);
const bool no_xp = monster->has_ench(ENCH_ABJ) || !experience;
const bool already_got_half_xp = testbits(monster->flags, MF_GOT_HALF_XP);
@@ -1616,7 +1616,7 @@ int monster_die(monsters *monster, killer_type killer,
&& monster->visible_to(&you);
const bool exploded = monster->flags & MF_EXPLODE_KILL;
- const bool created_friendly = testbits(monster->flags, MF_CREATED_FRIENDLY);
+ const bool created_friendly = testbits(monster->flags, MF_NO_REWARD);
bool anon = (killer_index == ANON_FRIENDLY_MONSTER);
const mon_holy_type targ_holy = monster->holiness();