]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
strafehud: fix start trigger speed indicator on maps with only two checkpoints (start...
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Thu, 11 Feb 2021 13:17:31 +0000 (14:17 +0100)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Thu, 11 Feb 2021 13:17:31 +0000 (14:17 +0100)
qcsrc/client/hud/panel/strafehud.qc

index d50424b0c75877da220fec7014bcbabdfff0e087..55a9191270d6d6babaf000c138f36dc143baa959 100644 (file)
@@ -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)
                 {