From: Mario Date: Wed, 22 Nov 2017 04:37:23 +0000 (+1000) Subject: Temporarily remove a fabs that didn't exist before (potential fix for some jumppad... X-Git-Tag: xonotic-v0.8.5~2435 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0449e726838e44257acdf8f8cfbd14f68122ea1b;p=xonotic%2Fxonotic-data.pk3dir.git Temporarily remove a fabs that didn't exist before (potential fix for some jumppad inaccuracies) --- diff --git a/qcsrc/common/triggers/trigger/jumppads.qc b/qcsrc/common/triggers/trigger/jumppads.qc index 822411c6a..b49b291d5 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(fabs(2 * grav * jumpheight)); // NOTE: sqrt(positive)! + vz = sqrt(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)