From: Mario Date: Mon, 6 Jan 2020 18:51:12 +0000 (+1000) Subject: Don't copy trace globals when performing touch with entities, the engine does this... X-Git-Tag: xonotic-v0.8.5~1105^2~41 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=96b9ac22f8f9414c6a0e597346a963bba12d06cc 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 --- 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