From 0669fb675f9a69d314419f8c818a3135a1197595 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 26 Jun 2008 17:25:55 +0000 Subject: [PATCH] - Fixed: P_BulletSlope() did not return the linetarget. This effected the Sigil, A_JumpIfCloser, and A_JumpIfTargetInLOS. SVN r1048 (trunk) --- docs/rh-log.txt | 4 ++++ src/p_pspr.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 97d8208eb..efb51b8f9 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,3 +1,7 @@ +June 26, 2008 +- Fixed: P_BulletSlope() did not return the linetarget. This effected + the Sigil, A_JumpIfCloser, and A_JumpIfTargetInLOS. + June 25, 2008 - Fixed all the new warnings tossed out by GCC 4.3. diff --git a/src/p_pspr.cpp b/src/p_pspr.cpp index 773db80ea..9a41a4502 100644 --- a/src/p_pspr.cpp +++ b/src/p_pspr.cpp @@ -652,6 +652,10 @@ angle_t P_BulletSlope (AActor *mo, AActor **pLineTarget) break; } } while (linetarget == NULL && --i >= 0); + if (pLineTarget != NULL) + { + *pLineTarget = linetarget; + } return pitch; }