From a1f031fb94e91514d260e879b6d69a4e66bc00b3 Mon Sep 17 00:00:00 2001 From: Stefan O'Rear Date: Fri, 13 Nov 2009 13:49:59 -0800 Subject: Fix ikiller brokennes --- crawl-ref/source/hiscores.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crawl-ref/source/hiscores.cc') 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(); -- cgit v1.2.3-54-g00ecf