mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 13:31:37 +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;
|
outdata->HitTexture = trace.Line->sidedef[trace.Side]->textures[2].texture;
|
||||||
break;
|
break;
|
||||||
case TIER_FFloor:
|
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;
|
txpart = (trace.ffloor->flags & FF_UPPERTEXTURE) ? 0 : (trace.ffloor->flags & FF_LOWERTEXTURE) ? 2 : 1;
|
||||||
outdata->HitTexture = trace.ffloor->master->sidedef[0]->textures[txpart].texture;
|
outdata->HitTexture = trace.ffloor->master->sidedef[0]->textures[txpart].texture;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue