- added: offset the trail actors spawned by AFastProjectile by missileheight.

SVN r2599 (trunk)
This commit is contained in:
Christoph Oelckers 2010-08-26 18:03:15 +00:00
parent eed5812799
commit 06a35dea11
1 changed files with 3 additions and 0 deletions

View File

@ -158,10 +158,13 @@ void AFastProjectile::Effect()
if (name != NAME_None)
{
fixed_t hitz = z-8*FRACUNIT;
if (hitz < floorz)
{
hitz = floorz;
}
// Do not clip this offset to the floor.
hitz += GetClass()->Meta.GetMetaFixed (ACMETA_MissileHeight);
const PClass *trail = PClass::FindClass(name);
if (trail != NULL)