]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Real fix for inconsistent refresh rate of numbers in the speedometer
authorterencehill <piuntn@gmail.com>
Thu, 18 May 2017 12:29:15 +0000 (14:29 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 18 May 2017 12:29:15 +0000 (14:29 +0200)
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