- fixed the sound location calculations which got somewhat broken by the constant changes during the conversion.

This commit is contained in:
Christoph Oelckers 2016-03-31 21:13:32 +02:00
parent 8f5ac9b73f
commit 6445615b5d
15 changed files with 138 additions and 164 deletions

View file

@ -1401,9 +1401,9 @@ void P_ExplodeMissile (AActor *mo, line_t *line, AActor *target)
den = line->Delta().LengthSquared();
if (den != 0)
{
frac = clamp<double>((mo->Pos() - line->V1()) | line->Delta(), 0, den) / den;
frac = clamp<double>((mo->Pos().XY() - line->v1->fPos()) | line->Delta(), 0, den) / den;
linepos = DVector3(line->V1() + line->Delta() * frac, pos.Z);
linepos = DVector3(line->v1->fPos() + line->Delta() * frac, pos.Z);
F3DFloor * ffloor=NULL;
if (line->sidedef[side^1] != NULL)