From: Mircea Kitsune Date: Fri, 21 Jan 2011 02:11:03 +0000 (+0200) Subject: Oops... sniper uses nails X-Git-Tag: xonotic-v0.5.0~309^2~7^2~173 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0b24015936868902d28a1bcc150743d6068274d1;p=xonotic%2Fxonotic-data.pk3dir.git Oops... sniper uses nails --- diff --git a/qcsrc/server/w_sniperrifle.qc b/qcsrc/server/w_sniperrifle.qc index 1815f784f..2dc560dc9 100644 --- a/qcsrc/server/w_sniperrifle.qc +++ b/qcsrc/server/w_sniperrifle.qc @@ -24,10 +24,10 @@ void W_SniperRifle_ReloadedAndReady() // now do the ammo maths self.ammo_counter = 0; // when we get here it's -1 - while(self.ammo_counter < autocvar_g_balance_sniperrifle_reload_ammo && self.ammo_shells) // make sure we don't add more than the amount of ammo we have + while(self.ammo_counter < autocvar_g_balance_sniperrifle_reload_ammo && self.ammo_nails) // make sure we don't add more than the amount of ammo we have { self.ammo_counter += 1; - self.ammo_shells -= 1; + self.ammo_nails -= 1; } self.sniperrifle_load = self.ammo_counter; @@ -44,7 +44,7 @@ void W_SniperRifle_Reload() float t; - if(!W_ReloadCheck(self.ammo_shells)) + if(!W_ReloadCheck(self.ammo_nails)) return; sound (self, CHAN_WEAPON2, "weapons/campingrifle_reload.wav", VOL_BASE, ATTN_NORM);