- fixed incorrect use of 'frac' in Trace's EnterLinePortal function.

How did this go wrong...?
This commit is contained in:
Christoph Oelckers 2016-04-15 22:22:38 +02:00
parent 6dfb4bdd41
commit cd75a46917

View file

@ -230,7 +230,7 @@ int FTraceInfo::EnterLinePortal(line_t *li, double frac)
P_TranslatePortalVXVY(li, newtrace.Vec.X, newtrace.Vec.Y);
frac += 1 / MaxDist;
double enterdist = MaxDist / frac;
double enterdist = MaxDist * frac;
DVector3 enter = newtrace.Start + enterdist * Vec;
newtrace.ActorMask = ActorMask;