summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-07 18:45:09 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-07 18:45:09 +0000
commit4a27714410c3f8f0f5113421a77e21a43242a0c2 (patch)
treef309c59a896cac08751a5eec556707cece2d7d17 /crawl-ref/source/player.cc
parentb06697749c94d7ef021b6b7224df1a05dde6f7c4 (diff)
downloadcrawl-ref-4a27714410c3f8f0f5113421a77e21a43242a0c2.tar.gz
crawl-ref-4a27714410c3f8f0f5113421a77e21a43242a0c2.zip
Fixed hydra decapitation kills not being correctly credited (Jennifer).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1259 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index c4b9f89af1..724ccfa21c 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -5159,10 +5159,10 @@ void player::teleport(bool now, bool abyss_shift)
you_teleport();
}
-void player::hurt(actor *agent, int amount)
+void player::hurt(const actor *agent, int amount)
{
if (agent->atype() == ACT_MONSTER)
- ouch(amount, monster_index( dynamic_cast<monsters*>(agent) ),
+ ouch(amount, monster_index( dynamic_cast<const monsters*>(agent) ),
KILLED_BY_MONSTER);
else
{