]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
strafehud: show start speed indicator even on maps with shared start/finish trigger
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Fri, 16 Oct 2020 21:33:13 +0000 (23:33 +0200)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Fri, 16 Oct 2020 21:33:13 +0000 (23:33 +0200)
qcsrc/client/hud/panel/strafehud.qc

index bc33063861cdb7f87e61ae023d4f7a29c24ba39d..d50424b0c75877da220fec7014bcbabdfff0e087 100644 (file)
@@ -627,7 +627,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)
                 {