summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/hiscores.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2009-12-27 12:57:27 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-12-27 12:57:27 +1000
commit061e97f1722560e2180323b3e38c76add540b4b6 (patch)
treeddbe27e3c65ce9b0ea6a60e5b5e7d0878f221346 /crawl-ref/source/hiscores.cc
parent359d6d7fe959bd89ee94cb03732e22408bdc7aff (diff)
downloadcrawl-ref-061e97f1722560e2180323b3e38c76add540b4b6.tar.gz
crawl-ref-061e97f1722560e2180323b3e38c76add540b4b6.zip
Fix "shot with an orcish bolt by a yellow wasp" during Mislead.
Hopefully that's every occurence.
Diffstat (limited to 'crawl-ref/source/hiscores.cc')
-rw-r--r--crawl-ref/source/hiscores.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/hiscores.cc b/crawl-ref/source/hiscores.cc
index a64b191e73..bf684601c8 100644
--- a/crawl-ref/source/hiscores.cc
+++ b/crawl-ref/source/hiscores.cc
@@ -777,6 +777,13 @@ void scorefile_entry::init_death_cause(int dam, int dsrc,
death_type = dtype;
damage = dam;
+ // Save this here. We don't want to completely remove the status, as that
+ // would look odd in the "screenshot", but having DUR_MISLED as a non-zero
+ // value at his point in time will generate such odities as "killed by a
+ // golden eye, wielding an orcish crossbo [19 damage]", etc. {due}
+ int misled = you.duration[DUR_MISLED];
+ you.duration[DUR_MISLED] = 0;
+
// Set the default aux data value...
// If aux is passed in (ie for a trap), we'll default to that.
if (aux == NULL)
@@ -887,6 +894,9 @@ void scorefile_entry::init_death_cause(int dam, int dsrc,
if (auxkilldata.empty())
auxkilldata = "unknown source";
}
+
+ // And restore it here.
+ you.duration[DUR_MISLED] = misled;
}
void scorefile_entry::reset()