From 8bbe241dcf5d02457c56ee5d9d297e70dc872138 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 21 Jun 2012 09:11:00 +0000 Subject: [PATCH] - fixed: A_Saw used the target acquired by P_AimLineAttack for determining if it hit something, not the actual victim of the attack. This is particularly incorrect if the target is a ghost or a spectal monster. SVN r3704 (trunk) --- src/g_doom/a_doomweaps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_doom/a_doomweaps.cpp b/src/g_doom/a_doomweaps.cpp index 4ebeccd24..8cb3739f6 100644 --- a/src/g_doom/a_doomweaps.cpp +++ b/src/g_doom/a_doomweaps.cpp @@ -151,7 +151,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_Saw) return; } - P_LineAttack (self, angle, Range, slope, damage, NAME_Melee, pufftype); + P_LineAttack (self, angle, Range, slope, damage, NAME_Melee, pufftype, false, &linetarget); if (!linetarget) {