mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-04 01:41:56 +00:00
Hotfix: LineTrace now reports the correct number of portal crossings.
This commit is contained in:
parent
a0758d6a92
commit
4ca8d538b3
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue