From 6073ef068e908f7f433119ef2b957e851c53b0d3 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 5 Nov 2022 18:33:50 +0100 Subject: [PATCH] Don't link mover controllers to the world, should improve performance a little --- qcsrc/common/mapobjects/subs.qc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/mapobjects/subs.qc b/qcsrc/common/mapobjects/subs.qc index c0b137404..39573a482 100644 --- a/qcsrc/common/mapobjects/subs.qc +++ b/qcsrc/common/mapobjects/subs.qc @@ -169,7 +169,8 @@ void SUB_CalcMove_controller_setbezier (entity controller, vector org, vector co // 2 * control * t - 2 * control * t * t + destin * t * t // 2 * control * t + (destin - 2 * control) * t * t - setorigin(controller, org); + //setorigin(controller, org); // don't link to the world + controller.origin = org; control -= org; destin -= org; @@ -184,7 +185,8 @@ void SUB_CalcMove_controller_setlinear (entity controller, vector org, vector de // 2 * control * t - 2 * control * t * t + destin * t * t // 2 * control * t + (destin - 2 * control) * t * t - setorigin(controller, org); + //setorigin(controller, org); // don't link to the world + controller.origin = org; destin -= org; controller.destvec = destin; // end point -- 2.39.2