summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/hiscores.cc
diff options
context:
space:
mode:
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();