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; + } + } } } }