mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +00:00
Linetrace properly reports 3D line hits as "middle" part (#1228)
* Linetrace properly reports 3D line hits as "middle" part, as was intended. * Typo fix
This commit is contained in:
parent
11954ef1ad
commit
c933d02034
1 changed files with 1 additions and 0 deletions
|
@ -4888,6 +4888,7 @@ int P_LineTrace(AActor *t1, DAngle angle, double distance,
|
|||
outdata->HitTexture = trace.Line->sidedef[trace.Side]->textures[2].texture;
|
||||
break;
|
||||
case TIER_FFloor:
|
||||
outdata->LinePart = 1; // act as if middle was hit
|
||||
txpart = (trace.ffloor->flags & FF_UPPERTEXTURE) ? 0 : (trace.ffloor->flags & FF_LOWERTEXTURE) ? 2 : 1;
|
||||
outdata->HitTexture = trace.ffloor->master->sidedef[0]->textures[txpart].texture;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue