From: Mario Date: Wed, 22 Nov 2017 04:50:25 +0000 (+1000) Subject: Restore the fabs X-Git-Tag: xonotic-v0.8.5~2434 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=0da0a4a0902511a6bfb5f45f88a83632b135a85c;p=xonotic%2Fxonotic-data.pk3dir.git Restore the fabs --- 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)