From 9713d231d502fbde4636cb70be5d3a8169c6aeae Mon Sep 17 00:00:00 2001 From: drjaska Date: Tue, 7 Feb 2023 15:45:45 +0200 Subject: [PATCH] add newlines into a comment to reduce line length --- qcsrc/common/mapobjects/trigger/jumppads.qc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) -- 2.39.2