]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/physics/movetypes/movetypes.qc
Also reverse trace_plane_normal to match the engine's behaviour
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / physics / movetypes / movetypes.qc
index e60caec3154be6e8b07cc654ab22970ca89bc80b..651b6f3d642e7f861fe1cb4adcb439b5a7d6a8e3 100644 (file)
@@ -427,6 +427,7 @@ void _Movetype_Impact(entity this, entity toucher)  // SV_Impact
        if(toucher.solid != SOLID_NOT && gettouch(toucher) && !wasfreed(this) && !wasfreed(toucher))
        {
                trace_endpos = toucher.origin;
+               trace_plane_normal = -trace_plane_normal;
                trace_plane_dist = -trace_plane_dist;
                trace_ent = this;
                trace_dpstartcontents = 0;