- Copied railgun sound fix from Skulltag.

- Made infighting a level flag. The old method still exists but the level flags
  will take precedence if set.



SVN r532 (trunk)
This commit is contained in:
Christoph Oelckers 2007-05-20 11:08:36 +00:00
commit f4dcfad331
9 changed files with 60 additions and 13 deletions

View file

@ -462,8 +462,9 @@ void P_DrawRailTrail (AActor *source, const FVector3 &start, const FVector3 &end
else
{
// Only consider sound in 2D (for now, anyway)
// [BB] You have to devide by lengthsquared here, not multiply with it.
r = ((start.Y - FIXED2FLOAT(mo->y)) * (-dir.Y) -
(start.X - FIXED2FLOAT(mo->x)) * (dir.X)) * length * length;
(start.X - FIXED2FLOAT(mo->x)) * (dir.X)) / lengthsquared;
dirz = dir.Z;
dir.Z = 0;