]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Temporarily remove a fabs that didn't exist before (potential fix for some jumppad...
authorMario <mario@smbclan.net>
Wed, 22 Nov 2017 04:37:23 +0000 (14:37 +1000)
committerMario <mario@smbclan.net>
Wed, 22 Nov 2017 04:37:23 +0000 (14:37 +1000)
qcsrc/common/triggers/trigger/jumppads.qc

index 822411c6a23a93d2b58093f3e28c1616564be7b1..b49b291d5232dbcad975e57a4fa10b806a3546bd 100644 (file)
@@ -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)