From: Mario Date: Tue, 7 Feb 2023 14:34:19 +0000 (+1000) Subject: Also reverse trace_plane_normal to match the engine's behaviour X-Git-Tag: xonotic-v0.8.6~173^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=41f9357f4833401f27f2a5ebf45f7f47a813f04e;p=xonotic%2Fxonotic-data.pk3dir.git Also reverse trace_plane_normal to match the engine's behaviour --- diff --git a/qcsrc/common/physics/movetypes/movetypes.qc b/qcsrc/common/physics/movetypes/movetypes.qc index e60caec31..651b6f3d6 100644 --- a/qcsrc/common/physics/movetypes/movetypes.qc +++ b/qcsrc/common/physics/movetypes/movetypes.qc @@ -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;