]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 cbb54cd26e575c8cb6e67740b0b48fa2f02516bf..b3f460ce7d99daaf5f6c1dab28832cbca57a5ad8 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);
                }