From: Martin Taibr Date: Sun, 20 Oct 2019 15:29:57 +0000 (+0200) Subject: avoid using broken globals in g_walljump, should fix #2313 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fheads%2Fmartin-t%2Fwalljump;p=xonotic%2Fxonotic-data.pk3dir.git avoid using broken globals in g_walljump, should fix #2313 --- diff --git a/qcsrc/common/mutators/mutator/walljump/walljump.qc b/qcsrc/common/mutators/mutator/walljump/walljump.qc index c462a7e2b..519159d91 100644 --- a/qcsrc/common/mutators/mutator/walljump/walljump.qc +++ b/qcsrc/common/mutators/mutator/walljump/walljump.qc @@ -23,10 +23,12 @@ vector PlayerTouchWall(entity this) float dist = 10, max_normal = 0.2, scaler = 100; vector start = this.origin; - TRACE(start + v_forward * scaler) - TRACE(start - v_forward * scaler) - TRACE(start + v_right * scaler) - TRACE(start - v_right * scaler) + vector forward, right, _up; + MAKE_VECTORS(this.angles, forward, right, _up); + TRACE(start + forward * scaler) + TRACE(start - forward * scaler) + TRACE(start + right * scaler) + TRACE(start - right * scaler) #undef TRACE return '0 0 0'; }