]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add patch from Juhu/strafehud-fixes branch: "strafehud: show start speed indicator...
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Mon, 1 Feb 2021 22:16:47 +0000 (23:16 +0100)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Mon, 1 Feb 2021 22:16:47 +0000 (23:16 +0100)
qcsrc/client/hud/panel/strafehud.qc

index 000f27e8821341afed825e955f2529ba75b1e5ce..df4d46c39072fca7c9b9efd0bd9f4df1b684e04d 100644 (file)
@@ -637,7 +637,7 @@ void HUD_StrafeHUD()
         if(autocvar_hud_panel_strafehud_startspeed_fade > 0)
         {
             float text_alpha = 0;
-            if(race_checkpoint == 254) // checkpoint 254 is the start trigger
+            if(race_nextcheckpoint == 1) // check if the start trigger was hit since the checkpoint after the start trigger is always checkpoint 1
             {
                 if(starttime != race_checkpointtime)
                 {