]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add patch from Juhu/strafehud-fixes branch: "strafehud: fix start trigger speed indic...
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Thu, 11 Feb 2021 13:30:44 +0000 (14:30 +0100)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Thu, 11 Feb 2021 13:30:44 +0000 (14:30 +0100)
qcsrc/client/hud/panel/strafehud.qc

index df4d46c39072fca7c9b9efd0bd9f4df1b684e04d..08b9dd7ba74a773c40f9fe9afd54a44dbb8a1d20 100644 (file)
@@ -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)
                 {