Use some more direct values with the new system
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 2 Mar 2011 22:29:47 +0000 (00:29 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 2 Mar 2011 22:29:47 +0000 (00:29 +0200)
qcsrc/client/View.qc

index c911e15..40c3b95 100644 (file)
@@ -1087,11 +1087,8 @@ void CSQC_UpdateView(float w, float h)
                                if (weapon_clipload) // ring around crosshair representing ammo left in weapon clip
                                {
                                        weapon_clipsize = getstati(STAT_WEAPON_CLIPSIZE);
-                                       f = bound(0, weapon_clipload / weapon_clipsize, 1);
-                                       a = autocvar_crosshair_ring_sniperrifle_alpha;
-
-                                       ring_value = f;
-                                       ring_alpha = a;
+                                       ring_value = bound(0, weapon_clipload / weapon_clipsize, 1);
+                                       ring_alpha = autocvar_crosshair_ring_sniperrifle_alpha;
                                        ring_image = "gfx/crosshair_ring.tga";
                                        ring_rgb = wcross_color;
                                }