]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Revert "remove a debug print... but why does the max speed peaks still not update...
authorterencehill <piuntn@gmail.com>
Sat, 15 Jan 2011 15:41:05 +0000 (16:41 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 15 Jan 2011 15:41:05 +0000 (16:41 +0100)
This reverts commit fdae430628cf8ccef2d27588e8098493b278206f.
It causes to display top speed 0

qcsrc/client/hud.qc

index 7fa4c8626e2d9d35ebdf362c9003a78b68808630..2f13b21f1ea20ce5d9678e183580c1fe5444550b 100644 (file)
@@ -4348,9 +4348,8 @@ void HUD_Physics(void)
                        {
                                top_speed = speed;
                                top_speed_time = time;
-                f = 1;
                        }
-            else if (top_speed != 0)
+                       if (top_speed != 0)
                        {
                                f = max(1, autocvar_hud_panel_physics_topspeed_time);
                                // divide by f to make it start from 1
@@ -4395,6 +4394,7 @@ void HUD_Physics(void)
                else
                        top_speed = 0;
        }
+    print(ftos(f), "\n");
 
        //draw acceleration
        if(acceleration && autocvar_hud_panel_physics_progressbar)