From 9d09e7421919647ef67a74fabb5221a03c243c1d Mon Sep 17 00:00:00 2001 From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Thu, 11 Feb 2021 14:30:44 +0100 Subject: [PATCH] Add patch from Juhu/strafehud-fixes branch: "strafehud: fix start trigger speed indicator on maps with only two checkpoints (start/finish)" --- qcsrc/client/hud/panel/strafehud.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/client/hud/panel/strafehud.qc b/qcsrc/client/hud/panel/strafehud.qc index df4d46c39..08b9dd7ba 100644 --- a/qcsrc/client/hud/panel/strafehud.qc +++ b/qcsrc/client/hud/panel/strafehud.qc @@ -637,7 +637,7 @@ void HUD_StrafeHUD() if(autocvar_hud_panel_strafehud_startspeed_fade > 0) { float text_alpha = 0; - if(race_nextcheckpoint == 1) // check if the start trigger was hit since the checkpoint after the start trigger is always checkpoint 1 + if((race_nextcheckpoint == 1) || (race_checkpoint == 254 && race_nextcheckpoint == 255)) // check if the start trigger was hit (will also trigger if the finish trigger was hit if those have the same ID) { if(starttime != race_checkpointtime) { -- 2.39.2