Don't copy trace globals when performing touch with entities, the engine does this...
authorMario <mario.mario@y7mail.com>
Mon, 6 Jan 2020 18:51:12 +0000 (04:51 +1000)
committerMario <mario.mario@y7mail.com>
Mon, 6 Jan 2020 18:51:12 +0000 (04:51 +1000)
qcsrc/common/physics/movetypes/movetypes.qc

index 93682436df4e5266e50704390e583e25d91390b1..bbd86d62e3f0a25074751573f0322b9341f17fa6 100644 (file)
@@ -331,17 +331,7 @@ void _Movetype_Impact(entity this, entity oth)  // SV_Impact
                gettouch(this)(this, oth);
 
        if(oth.solid != SOLID_NOT && gettouch(oth))
-       {
-               trace_endpos = oth.origin;
-               trace_plane_normal = -trace_plane_normal;
-               trace_plane_dist = -trace_plane_dist;
-               trace_ent = this;
-               trace_dpstartcontents = 0;
-               trace_dphitcontents = 0;
-               trace_dphitq3surfaceflags = 0;
-               trace_dphittexturename = string_null;
                gettouch(oth)(oth, this);
-       }
 }
 
 void _Movetype_LinkEdict_TouchAreaGrid(entity this)  // SV_LinkEdict_TouchAreaGrid