]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
speed_conversion_factor is supposed to be applied to speed_diff too, thanks to k9er...
authorDes - <gitlab@damianv.com.ar>
Sun, 15 Sep 2024 21:01:15 +0000 (21:01 +0000)
committerDes - <gitlab@damianv.com.ar>
Sun, 15 Sep 2024 21:01:15 +0000 (21:01 +0000)
qcsrc/client/hud/panel/racetimer.qc

index 50f6f15194310a94091c1f58e285ee5baf5d3ac5..b73f0319c0ccc9ba3f6b6b22f0e4610c1310beb9 100644 (file)
@@ -234,7 +234,7 @@ void HUD_RaceTimer ()
                                                        race_checkpoint_splits_speed[race_checkpoint] = speed;
                                                }
                                                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);
+                                                       speed_text = sprintf(" ^7%d%s %s(%+d%s)", speed * speed_conversion_factor, units_text, speed_color, speed_diff * speed_conversion_factor, units_text);
                                                else
                                                        speed_text = sprintf(" ^7%d%s", speed * speed_conversion_factor, units_text);
                                        }