From: Juhu <5894800-Juhu_@users.noreply.gitlab.com>
Date: Thu, 11 Feb 2021 13:30:44 +0000 (+0100)
Subject: Add patch from Juhu/strafehud-fixes branch: "strafehud: fix start trigger speed indic... 
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9d09e7421919647ef67a74fabb5221a03c243c1d;p=xonotic%2Fxonotic-data.pk3dir.git

Add patch from Juhu/strafehud-fixes branch: "strafehud: fix start trigger speed indicator on maps with only two checkpoints (start/finish)"
---

diff --git a/qcsrc/client/hud/panel/strafehud.qc b/qcsrc/client/hud/panel/strafehud.qc
index df4d46c390..08b9dd7ba7 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)
                 {