From 0da0a4a0902511a6bfb5f45f88a83632b135a85c Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 22 Nov 2017 14:50:25 +1000 Subject: [PATCH] Restore the fabs --- qcsrc/common/triggers/trigger/jumppads.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/triggers/trigger/jumppads.qc b/qcsrc/common/triggers/trigger/jumppads.qc index b49b291d5..822411c6a 100644 --- a/qcsrc/common/triggers/trigger/jumppads.qc +++ b/qcsrc/common/triggers/trigger/jumppads.qc @@ -73,7 +73,7 @@ vector trigger_push_calculatevelocity(vector org, entity tgt, float ht) */ // push him so high... - vz = sqrt(2 * grav * jumpheight); // NOTE: sqrt(positive)! + vz = sqrt(fabs(2 * grav * jumpheight)); // NOTE: sqrt(positive)! // we start with downwards velocity only if it's a downjump and the jump apex should be outside the jump! if(ht < 0) -- 2.39.2