summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/hiscores.cc
diff options
context:
space:
mode:
authorStefan O'Rear <stefanor@cox.net>2009-11-13 13:49:59 -0800
committerStefan O'Rear <stefanor@cox.net>2009-11-13 13:49:59 -0800
commita1f031fb94e91514d260e879b6d69a4e66bc00b3 (patch)
tree3c7df9a624e419b5407e86473a5ee0000af90d15 /crawl-ref/source/hiscores.cc
parent0b2938bbfc318cb3dd6ecf123ae5bb77cd24cf72 (diff)
downloadcrawl-ref-a1f031fb94e91514d260e879b6d69a4e66bc00b3.tar.gz
crawl-ref-a1f031fb94e91514d260e879b6d69a4e66bc00b3.zip
Fix ikiller brokennes
Diffstat (limited to 'crawl-ref/source/hiscores.cc')
-rw-r--r--crawl-ref/source/hiscores.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/hiscores.cc b/crawl-ref/source/hiscores.cc
index 2eca91acc0..9c35498092 100644
--- a/crawl-ref/source/hiscores.cc
+++ b/crawl-ref/source/hiscores.cc
@@ -849,6 +849,12 @@ void scorefile_entry::init_death_cause(int dam, int dsrc,
const CrawlVector& blame = monster->props["blame"].get_vector();
indirectkiller = blame[blame.size() - 1].get_string();
+
+ if (indirectkiller.find(" by ") != std::string::npos)
+ {
+ indirectkiller.erase(0, indirectkiller.find(" by ") + 4);
+ }
+
killerpath = "";
for (CrawlVector::const_iterator it = blame.begin();