mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 05:31:00 +00:00
Hotfix: LineTrace now reports the correct number of portal crossings.
This commit is contained in:
parent
f58027311e
commit
e81641dd01
1 changed files with 2 additions and 1 deletions
|
@ -4866,7 +4866,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