From d45262f96b5103d14826fe595345c82840843d76 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 3 Nov 2010 23:43:34 +0000 Subject: [PATCH] - fixed: With the Buddha cheat active the health of the real player actor was not synchronized with the player data if a voodoo doll received damage that would have killed it. SVN r2978 (trunk) --- src/p_interaction.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/p_interaction.cpp b/src/p_interaction.cpp index 93bb0c441..4a082cff0 100644 --- a/src/p_interaction.cpp +++ b/src/p_interaction.cpp @@ -1164,7 +1164,8 @@ void P_DamageMobj (AActor *target, AActor *inflictor, AActor *source, int damage // but telefragging should still do enough damage to kill the player) if ((player->cheats & CF_BUDDHA) && damage < TELEFRAG_DAMAGE) { - target->health = player->health = 1; + // If this is a voodoo doll we need to handle the real player as well. + player->mo->health = target->health = player->health = 1; } else {