From 5aa673baad443b067629607e5b3c98f92a77d928 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Fri, 25 Dec 2009 00:24:54 +0000 Subject: [PATCH] - Changed AFastProjectile::Effect() so that it sets the spawned trail to face same direction as the projectile. SVN r2039 (trunk) --- docs/rh-log.txt | 4 ++++ src/g_shared/a_fastprojectile.cpp | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index bbfd763b1e..1a1b346aaa 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,3 +1,7 @@ +December 24, 2009 +- Changed AFastProjectile::Effect() so that it sets the spawned trail to face + same direction as the projectile. + December 24, 2009 (Changes by Graf Zahl) - fixed: The UDMF blockfloaters flag was misnamed. Changed to match the spec. diff --git a/src/g_shared/a_fastprojectile.cpp b/src/g_shared/a_fastprojectile.cpp index fe97e6a536..5829fc1677 100644 --- a/src/g_shared/a_fastprojectile.cpp +++ b/src/g_shared/a_fastprojectile.cpp @@ -125,7 +125,14 @@ void AFastProjectile::Effect() } const PClass *trail = PClass::FindClass(name); - Spawn (trail, x, y, hitz, ALLOW_REPLACE); + if (trail != NULL) + { + AActor *act = Spawn (trail, x, y, hitz, ALLOW_REPLACE); + if (act != NULL) + { + act->angle = this->angle; + } + } } } }