From: terencehill Date: Thu, 18 May 2017 12:29:15 +0000 (+0200) Subject: Real fix for inconsistent refresh rate of numbers in the speedometer X-Git-Tag: xonotic-v0.8.5~2775 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ce56c7fccc3147848ea608dd5848cfe27a344efe;p=xonotic%2Fxonotic-data.pk3dir.git Real fix for inconsistent refresh rate of numbers in the speedometer --- diff --git a/qcsrc/client/hud/panel/physics.qc b/qcsrc/client/hud/panel/physics.qc index 6befd1a30..67be2ac68 100644 --- a/qcsrc/client/hud/panel/physics.qc +++ b/qcsrc/client/hud/panel/physics.qc @@ -91,6 +91,8 @@ void HUD_Physics() discrete_acceleration = acceleration; discrete_speed = speed; physics_update_time += autocvar_hud_panel_physics_update_interval; + if(physics_update_time < time) + physics_update_time = time + autocvar_hud_panel_physics_update_interval; } //compute layout