From: terencehill Date: Fri, 16 Aug 2019 21:14:52 +0000 (+0200) Subject: Clear ALL the trace globals before calling the touch functions; it fixes #2253 "Casin... X-Git-Tag: xonotic-v0.8.5~1387^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c4d8f03ac0c13f6485697126aedd59bfd3d86666;p=xonotic%2Fxonotic-data.pk3dir.git Clear ALL the trace globals before calling the touch functions; it fixes #2253 "Casings broken when standing on playerclip" --- 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); }