- Changed AFastProjectile::Effect() so that it sets the spawned trail to face

same direction as the projectile.


SVN r2039 (trunk)
This commit is contained in:
Randy Heit 2009-12-25 00:24:54 +00:00
parent d2a4339816
commit 5aa673baad
2 changed files with 12 additions and 1 deletions

View file

@ -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) December 24, 2009 (Changes by Graf Zahl)
- fixed: The UDMF blockfloaters flag was misnamed. Changed to match the spec. - fixed: The UDMF blockfloaters flag was misnamed. Changed to match the spec.

View file

@ -125,7 +125,14 @@ void AFastProjectile::Effect()
} }
const PClass *trail = PClass::FindClass(name); 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;
}
}
} }
} }
} }