mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- fixed incorrect use of 'frac' in Trace's EnterLinePortal function.
How did this go wrong...?
This commit is contained in:
parent
6dfb4bdd41
commit
cd75a46917
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue