diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 0af1e54e3..ffeae84f0 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -757,6 +757,7 @@ static void HWR_RenderPlane(subsector_t *subsector, extrasubsector_t *xsub, bool x1 = FIXED_TO_FLOAT(line->v1->x); y1 = FIXED_TO_FLOAT(line->v1->x); } + if (line->pv2) { xd = ((polyvertex_t *)line->pv2)->x - x1; @@ -4589,7 +4590,7 @@ static void HWR_ProjectSprite(mobj_t *thing) angle_t sliptiderollangle = 0; #endif - if (P_MobjWasRemoved(thing) || thing->subsector == NULL) + if (!thing || thing->subsector == NULL) return; // uncapped/interpolation