From cd75a469172aed3598e0ee380757071e3a6d63e5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 15 Apr 2016 22:22:38 +0200 Subject: [PATCH] - fixed incorrect use of 'frac' in Trace's EnterLinePortal function. How did this go wrong...? --- src/p_trace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_trace.cpp b/src/p_trace.cpp index bc022535f..2d794e19c 100644 --- a/src/p_trace.cpp +++ b/src/p_trace.cpp @@ -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;