]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hud/panel/physics.qc
Real fix for inconsistent refresh rate of numbers in the speedometer
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud / panel / physics.qc
index 6befd1a30a4fe161ea57e386def9eb33f0e2bbfe..67be2ac68646484292b026eac75d1eecb3d42233 100644 (file)
@@ -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