From 96b9ac22f8f9414c6a0e597346a963bba12d06cc Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 7 Jan 2020 04:51:12 +1000 Subject: [PATCH] Don't copy trace globals when performing touch with entities, the engine does this to provide them to QC, a process that is not required in QC --- qcsrc/common/physics/movetypes/movetypes.qc | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/qcsrc/common/physics/movetypes/movetypes.qc b/qcsrc/common/physics/movetypes/movetypes.qc index 93682436d..bbd86d62e 100644 --- a/qcsrc/common/physics/movetypes/movetypes.qc +++ b/qcsrc/common/physics/movetypes/movetypes.qc @@ -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 -- 2.39.2