]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add missing conversion factor
authorDes <xon@damianv.com.ar>
Fri, 29 Nov 2024 13:08:46 +0000 (10:08 -0300)
committerDes <xon@damianv.com.ar>
Fri, 29 Nov 2024 13:08:46 +0000 (10:08 -0300)
qcsrc/client/hud/panel/racetimer.qc

index be6787c2eb129e3b16de87bcf2651f6408e9244c..9a36920ec336e8ba6a02d5391584cf693d204f15 100644 (file)
@@ -233,7 +233,7 @@ void HUD_RaceTimer ()
                                                else if (speed_diff == 0) speed_color = "^3";
 
                                                if(race_time && race_previousbesttime && race_checkpoint_splits_speed[race_checkpoint])
-                                                       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);