From 47cb2ad6bc14709d16c1b72d8c14a10b1e65ee25 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Fri, 25 Jan 2013 02:35:11 +0000 Subject: [PATCH] - In P_PoisonPlayer(), keep track of the source as the poisoner, so you can get accurate kill accounting. Also, if the poisoner is a missile, remembering it is pretty pointless, since it's likely to be gone before the player ever dies from the poison. SVN r4040 (trunk) --- src/p_interaction.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/p_interaction.cpp b/src/p_interaction.cpp index 66bdbe2a2..3004022e4 100644 --- a/src/p_interaction.cpp +++ b/src/p_interaction.cpp @@ -1511,6 +1511,10 @@ bool AActor::OkayToSwitchTarget (AActor *other) // // P_PoisonPlayer - Sets up all data concerning poisoning // +// poisoner is the object directly responsible for poisoning the player, +// such as a missile. source is the actor responsible for creating the +// poisoner. +// //========================================================================== bool P_PoisonPlayer (player_t *player, AActor *poisoner, AActor *source, int poison) @@ -1526,7 +1530,7 @@ bool P_PoisonPlayer (player_t *player, AActor *poisoner, AActor *source, int poi if (poison > 0) { player->poisoncount += poison; - player->poisoner = poisoner; + player->poisoner = source; if (poisoner == NULL) { player->poisontype = player->poisonpaintype = NAME_None;