summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 0e0c362709..7331b97a01 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -5247,7 +5247,7 @@ bool confuse_player(int amount, bool resistable)
return (true);
}
-bool curare_hits_player(int agent, int amount)
+bool curare_hits_player(int death_source, int amount)
{
ASSERT(!crawl_state.arena);
@@ -5268,7 +5268,8 @@ bool curare_hits_player(int agent, int amount)
if (hurted)
{
mpr("You have difficulty breathing.");
- ouch(hurted, agent, KILLED_BY_CURARE, "curare-induced apnoea");
+ ouch(hurted, death_source, KILLED_BY_CURARE,
+ "curare-induced apnoea");
}
potion_effect(POT_SLOWING, 2 + random2(4 + amount));