Hotfix: LineTrace now reports the correct number of portal crossings.

This commit is contained in:
Marisa Kirisame 2020-06-07 11:51:59 +02:00 committed by drfrag
parent a0758d6a92
commit 4ca8d538b3

View file

@ -4877,7 +4877,8 @@ int P_LineTrace(AActor *t1, DAngle angle, double distance,
outdata->HitLocation = trace.HitPos;
outdata->HitDir = trace.HitVector;
outdata->Distance = trace.Distance;
outdata->NumPortals = TData.NumPortals;
// [MK] Subtract two "bogus" portal crossings used internally by trace code
outdata->NumPortals = TData.NumPortals-2;
outdata->HitType = trace.HitType;
}
return ret;