summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/Kills.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-08 15:34:10 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-08 15:34:10 +0000
commit4a6ed4aa315d47f6ac7186eb217e08c6bea38a1d (patch)
tree0310dfc6788043db7ba118fff6dccbc38a16c7c1 /crawl-ref/source/Kills.cc
parent8fda0acad5c6c6bf377684d2c14de56ea2e77adf (diff)
downloadcrawl-ref-4a6ed4aa315d47f6ac7186eb217e08c6bea38a1d.tar.gz
crawl-ref-4a6ed4aa315d47f6ac7186eb217e08c6bea38a1d.zip
[1746247] Award experience for confused monsters killing themselves and other
monsters. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1800 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/Kills.cc')
-rw-r--r--crawl-ref/source/Kills.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/Kills.cc b/crawl-ref/source/Kills.cc
index 1f3b8c7d37..74c3215f35 100644
--- a/crawl-ref/source/Kills.cc
+++ b/crawl-ref/source/Kills.cc
@@ -81,10 +81,10 @@ void KillMaster::load(FILE *file)
void KillMaster::record_kill(const monsters *mon, int killer, bool ispet)
{
- kill_category kc =
- (killer == KILL_YOU || killer == KILL_YOU_MISSILE)? KC_YOU :
- (ispet)? KC_FRIENDLY :
- KC_OTHER;
+ const kill_category kc =
+ YOU_KILL(killer)? KC_YOU :
+ ispet? KC_FRIENDLY :
+ KC_OTHER;
categorized_kills[kc].record_kill(mon);
}