]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Frametime dependency
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 30 Oct 2010 14:39:49 +0000 (17:39 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 30 Oct 2010 14:39:49 +0000 (17:39 +0300)
qcsrc/client/View.qc

index 8bfccde47e4e0f3c23306250714e8f82a2139b76..ee9b9e3ad24240ad2c57cd4ad625d91baafa5bf6 100644 (file)
@@ -779,7 +779,7 @@ void CSQC_UpdateView(float w, float h)
                                                pickup_crosshair_time = getstatf(STAT_PICKUP_CROSSHAIR);
                                        }
                                        if(pickup_crosshair_fade > 0)
-                                               pickup_crosshair_fade -= cvar("crosshair_pickup_speed");
+                                               pickup_crosshair_fade -= cvar("crosshair_pickup_speed") * frametime;
                                        else
                                                pickup_crosshair_fade = 0;
                                        wcross_scale += sin(pickup_crosshair_fade) * cvar("crosshair_pickup");