]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
strafehud: fix incorrect merge, pass the checkpoint speed as parameter (reported...
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Mon, 16 Dec 2024 01:18:50 +0000 (02:18 +0100)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Mon, 16 Dec 2024 01:24:26 +0000 (02:24 +0100)
qcsrc/client/hud/panel/strafehud.qc
qcsrc/client/hud/panel/strafehud/extra.qc

index e7fb135b9ce640044860e6092321292c2934f76f..59bfcc8855f9660d0daf7736f4410f3aed31e39f 100644 (file)
@@ -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();
index ee7c760c352170ba8980ad2a2748d1a11c06d5f7..03d285ba239fef9a1fe37ed0723714e1e106e8f9 100644 (file)
@@ -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;
                }
        }