Clear ALL the trace globals before calling the touch functions; it fixes #2253 "Casin... 689/head
authorterencehill <piuntn@gmail.com>
Fri, 16 Aug 2019 21:14:52 +0000 (23:14 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 16 Aug 2019 21:14:52 +0000 (23:14 +0200)
qcsrc/common/physics/movetypes/movetypes.qc

index cbb54cd..b3f460c 100644 (file)
@@ -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);
                }