]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Restore the fabs
authorMario <mario@smbclan.net>
Wed, 22 Nov 2017 04:50:25 +0000 (14:50 +1000)
committerMario <mario@smbclan.net>
Wed, 22 Nov 2017 04:50:25 +0000 (14:50 +1000)
qcsrc/common/triggers/trigger/jumppads.qc

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