]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 c911e1577c2eaeb3aaec821010941ba677fb9671..40c3b957a12eb65bd33d9616c5c2f489b3cccf0e 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;
                                }