From c933d020343f16ef1d89dbbbceb4c4f4d2cc6343 Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Mon, 26 Oct 2020 09:24:04 +0100 Subject: [PATCH] Linetrace properly reports 3D line hits as "middle" part (#1228) * Linetrace properly reports 3D line hits as "middle" part, as was intended. * Typo fix --- src/playsim/p_map.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/playsim/p_map.cpp b/src/playsim/p_map.cpp index b976fac5b..9ba6dd8e1 100644 --- a/src/playsim/p_map.cpp +++ b/src/playsim/p_map.cpp @@ -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;