From: drjaska Date: Tue, 7 Feb 2023 13:45:45 +0000 (+0200) Subject: add newlines into a comment to reduce line length X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9713d231d502fbde4636cb70be5d3a8169c6aeae;p=xonotic%2Fxonotic-data.pk3dir.git add newlines into a comment to reduce line length --- diff --git a/qcsrc/common/mapobjects/trigger/jumppads.qc b/qcsrc/common/mapobjects/trigger/jumppads.qc index 67bb65191..df78b0b44 100644 --- a/qcsrc/common/mapobjects/trigger/jumppads.qc +++ b/qcsrc/common/mapobjects/trigger/jumppads.qc @@ -81,9 +81,13 @@ vector trigger_push_calculatevelocity(vector org, entity tgt, float ht, entity p solution = solve_quadratic(0.5 * grav, -vz, zdist); // equation "z(ti) = zdist" // ALWAYS solvable because jumpheight >= zdist if(!solution.z) - solution_y = solution.x; // just in case it is not solvable due to roundoff errors, assume two equal solutions at their center (this is mainly for the usual case with ht == 0) + // just in case it is not solvable due to roundoff errors, + // assume two equal solutions at their center (this is mainly for the usual case with ht == 0) + solution_y = solution.x; if(zdist == 0) - solution_x = solution.y; // solution_x is 0 in this case, so don't use it, but rather use solution_y (which will be sqrt(0.5 * jumpheight / grav), actually) + // solution_x is 0 in this case, so don't use it, + // but rather use solution_y (which will be sqrt(0.5 * jumpheight / grav), actually) + solution_x = solution.y; float flighttime; if(zdist < 0)