From 0aa9932fc83dfc9ff29b5e83fb482e31b43d02bb Mon Sep 17 00:00:00 2001 From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Mon, 16 Dec 2024 02:18:50 +0100 Subject: [PATCH] strafehud: fix incorrect merge, pass the checkpoint speed as parameter (reported by Des) --- qcsrc/client/hud/panel/strafehud.qc | 2 +- qcsrc/client/hud/panel/strafehud/extra.qc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } } -- 2.39.2