]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
don't increase the speed counter clientside if we're out of ammo
authorFruitieX <rasse@rasse-laptop.(none)>
Wed, 13 Oct 2010 11:19:19 +0000 (14:19 +0300)
committerFruitieX <rasse@rasse-laptop.(none)>
Wed, 13 Oct 2010 11:19:19 +0000 (14:19 +0300)
qcsrc/client/View.qc

index b4da5c81589dee6e0e762a7d0fd8282230d4ac73..6305be323fc74b8cbb59422be14c138e3111c4f8 100644 (file)
@@ -838,7 +838,7 @@ void CSQC_UpdateView(float w, float h)
                                else
                                        nex_speed = max(nex_minvelocity, nex_speed - nex_speed_falloff_rate * frametime);
 
-                               if (activeweapon == WEP_NEX && button_attack2 && nex_charge)
+                               if (activeweapon == WEP_NEX && button_attack2 && nex_charge && getstati(GetAmmoStat(3)))
                                        nex_speed = min(nex_maxvelocity, nex_speed + nex_charge_rate * frametime);
 
                                // ring around crosshair representing bullets left in camping rifle clip