From: Mario Date: Thu, 6 Jun 2013 17:52:56 +0000 (+1000) Subject: Add negative gravity jumppad fix by Player 2 X-Git-Tag: xonotic-v0.8.0~366^2~30 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0524a059ad6beb5c352545939d55e9915f79e3d1;p=xonotic%2Fxonotic-data.pk3dir.git Add negative gravity jumppad fix by Player 2 --- diff --git a/qcsrc/server/t_jumppads.qc b/qcsrc/server/t_jumppads.qc index fba705c28..0efb77df2 100644 --- a/qcsrc/server/t_jumppads.qc +++ b/qcsrc/server/t_jumppads.qc @@ -71,7 +71,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)