]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Also reverse trace_plane_normal to match the engine's behaviour
authorMario <mario.mario@y7mail.com>
Tue, 7 Feb 2023 14:34:19 +0000 (00:34 +1000)
committerMario <mario.mario@y7mail.com>
Tue, 7 Feb 2023 14:34:19 +0000 (00:34 +1000)
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;