From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Mon, 9 Sep 2024 17:46:58 +0000 (+0200) Subject: strafehud: FIXME comment for every stateful strafehud function X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bc79abe3acedf3486caa910c1aed4691d6397d03;p=xonotic%2Fxonotic-data.pk3dir.git strafehud: FIXME comment for every stateful strafehud function --- diff --git a/qcsrc/client/hud/panel/strafehud/extra.qc b/qcsrc/client/hud/panel/strafehud/extra.qc index 2054d420c..2a52e56a0 100644 --- a/qcsrc/client/hud/panel/strafehud/extra.qc +++ b/qcsrc/client/hud/panel/strafehud/extra.qc @@ -160,8 +160,8 @@ string StrafeHUD_UpdateSonarSound() } // show height achieved by a single jump -// FIXME: checking z position differences is unreliable (warpzones, teleporter, kill, etc) but using velocity to calculate jump height would be -// inaccurate in hud code (possibly different tick rate than physics, does not run when hud is not drawn, rounding errors) +// FIXME: checking z position differences is unreliable (warpzones, teleporter, kill, etc), use velocity to calculate jump height instead +// FIXME: move capturing the jump height value out of the HUD float StrafeHUD_drawJumpHeight(entity e, bool onground, bool swimming, float text_offset_top) { float length_conversion_factor = GetLengthUnitFactor(autocvar_hud_speed_unit); @@ -232,6 +232,7 @@ float StrafeHUD_drawStrafeEfficiency(float strafe_ratio, float text_offset_top) } // show speed when crossing the start trigger +// FIXME: move capturing the race start speed value out of the HUD float StrafeHUD_drawStartSpeed(float speed, float text_offset_bottom) { static float startspeed = 0, starttime = 0; // displayed value and timestamp for fade out