]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Treat speed same as time for first time a cp is hit.
authorDes <xon@damianv.com.ar>
Thu, 5 Sep 2024 21:49:52 +0000 (18:49 -0300)
committerDes <xon@damianv.com.ar>
Thu, 5 Sep 2024 21:49:52 +0000 (18:49 -0300)
qcsrc/client/hud/panel/racetimer.qc

index 04544683a0d61564e6fe43ef6460d942c7daba9e..768945b4ffd8936517ca71f25566222b273b406d 100644 (file)
@@ -232,7 +232,10 @@ void HUD_RaceTimer ()
                                                {
                                                        race_checkpoint_splits_speed[race_checkpoint] = speed;
                                                }
-                                               speed_text = sprintf(" ^7%d%s %s(%+d%s)", speed * speed_conversion_factor, units_text, speed_color, speed_diff, units_text);
+                                               if(race_time && race_previousbesttime)
+                                                       speed_text = sprintf(" ^7%d%s %s(%+d%s)", speed * speed_conversion_factor, units_text, speed_color, speed_diff, units_text);
+                                               else
+                                                       speed_text = sprintf(" ^7%d%s", speed * speed_conversion_factor, units_text);
                                        }
                                        // build checkpoint split strings
                                        if(race_time && race_previousbesttime)