From 19025d9405304ef686139be13cd7fb1fd246ce69 Mon Sep 17 00:00:00 2001 From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Thu, 11 Feb 2021 14:17:31 +0100 Subject: [PATCH] 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 d50424b0c..55a919127 100644 --- a/qcsrc/client/hud/panel/strafehud.qc +++ b/qcsrc/client/hud/panel/strafehud.qc @@ -627,7 +627,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