From: FruitieX <rasse@rasse-laptop.(none)>
Date: Wed, 13 Oct 2010 16:35:43 +0000 (+0300)
Subject: don't run any of the nex-ring stuff if nexspeed <= minspeed
X-Git-Tag: xonotic-v0.1.0preview~307^2~7
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6f22b010b74583fce0813f78e80a544e72e621b3;p=xonotic%2Fxonotic-data.pk3dir.git

don't run any of the nex-ring stuff if nexspeed <= minspeed
---

diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc
index 6305be323..5f422a03e 100644
--- a/qcsrc/client/View.qc
+++ b/qcsrc/client/View.qc
@@ -850,7 +850,7 @@ void CSQC_UpdateView(float w, float h)
 					a = cvar("crosshair_campingrifle_bulletcounter_alpha");
 					DrawCircleClippedPic(wcross_origin, wcross_size_x * ring_scale, "gfx/crosshair_ring.tga", f, wcross_color, wcross_alpha * a, DRAWFLAG_ADDITIVE);
 				}
-				else if (activeweapon == WEP_NEX && nex_velocitydependent) // ring around crosshair representing velocity-dependent damage for the nex
+				else if (activeweapon == WEP_NEX && nex_velocitydependent && nex_speed > nex_minvelocity) // ring around crosshair representing velocity-dependent damage for the nex
 				{
 					f = bound(0, (nex_speed - nex_minvelocity) / (nex_maxvelocity - nex_minvelocity), 1);