From c4d8f03ac0c13f6485697126aedd59bfd3d86666 Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 16 Aug 2019 23:14:52 +0200 Subject: [PATCH] Clear ALL the trace globals before calling the touch functions; it fixes #2253 "Casings broken when standing on playerclip" --- qcsrc/common/physics/movetypes/movetypes.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/common/physics/movetypes/movetypes.qc b/qcsrc/common/physics/movetypes/movetypes.qc index cbb54cd26..b3f460ce7 100644 --- a/qcsrc/common/physics/movetypes/movetypes.qc +++ b/qcsrc/common/physics/movetypes/movetypes.qc @@ -348,6 +348,10 @@ void _Movetype_LinkEdict_TouchAreaGrid(entity this) // SV_LinkEdict_TouchAreaGr trace_plane_normal = '0 0 1'; trace_plane_dist = 0; trace_ent = this; + trace_dpstartcontents = 0; + trace_dphitcontents = 0; + trace_dphitq3surfaceflags = 0; + trace_dphittexturename = string_null; gettouch(it)(it, this); } -- 2.39.2