From: Des Date: Thu, 5 Sep 2024 21:49:52 +0000 (-0300) Subject: Treat speed same as time for first time a cp is hit. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f08f59b7f5ba3e15fe91ea558c8a0acaab50311d;p=xonotic%2Fxonotic-data.pk3dir.git Treat speed same as time for first time a cp is hit. --- diff --git a/qcsrc/client/hud/panel/racetimer.qc b/qcsrc/client/hud/panel/racetimer.qc index 04544683a..768945b4f 100644 --- a/qcsrc/client/hud/panel/racetimer.qc +++ b/qcsrc/client/hud/panel/racetimer.qc @@ -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)