From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Mon, 16 Dec 2024 01:18:50 +0000 (+0100) Subject: strafehud: fix incorrect merge, pass the checkpoint speed as parameter (reported... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0aa9932fc83dfc9ff29b5e83fb482e31b43d02bb;p=xonotic%2Fxonotic-data.pk3dir.git strafehud: fix incorrect merge, pass the checkpoint speed as parameter (reported by Des) --- diff --git a/qcsrc/client/hud/panel/strafehud.qc b/qcsrc/client/hud/panel/strafehud.qc index e7fb135b9..59bfcc885 100644 --- a/qcsrc/client/hud/panel/strafehud.qc +++ b/qcsrc/client/hud/panel/strafehud.qc @@ -762,7 +762,7 @@ void HUD_StrafeHUD() StrafeHUD_DrawVerticalAngle(strafeplayer, text_offset_top, text_offset_bottom); draw_beginBoldFont(); - StrafeHUD_DrawStartSpeed(speed, text_offset_top, text_offset_bottom); + StrafeHUD_DrawStartSpeed(race_timespeed, text_offset_top, text_offset_bottom); StrafeHUD_DrawStrafeEfficiency(strafe_ratio, text_offset_top, text_offset_bottom); StrafeHUD_DrawJumpHeight(strafeplayer, real_onground, swimming, text_offset_top, text_offset_bottom); draw_endBoldFont(); diff --git a/qcsrc/client/hud/panel/strafehud/extra.qc b/qcsrc/client/hud/panel/strafehud/extra.qc index ee7c760c3..03d285ba2 100644 --- a/qcsrc/client/hud/panel/strafehud/extra.qc +++ b/qcsrc/client/hud/panel/strafehud/extra.qc @@ -253,7 +253,7 @@ void StrafeHUD_DrawStartSpeed(float speed, float text_offset_top, float text_off if((race_checkpointtime > 0) && (starttime != race_checkpointtime)) { starttime = race_checkpointtime; - startspeed = race_timespeed; + startspeed = speed; } }