From: Mircea Kitsune Date: Wed, 2 Mar 2011 22:29:47 +0000 (+0200) Subject: Use some more direct values with the new system X-Git-Tag: xonotic-v0.5.0~309^2~7^2~8 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=232d8ef9a0669f18f51b11c5241c85d3401b5e93;p=xonotic%2Fxonotic-data.pk3dir.git Use some more direct values with the new system --- diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index c911e1577..40c3b957a 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -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; }