]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Oops... sniper uses nails
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 21 Jan 2011 02:11:03 +0000 (04:11 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 21 Jan 2011 02:11:03 +0000 (04:11 +0200)
qcsrc/server/w_sniperrifle.qc

index 1815f784f0a347d8538c7e827480a91f3508134c..2dc560dc96eae5adadf7195e3b51d117e162ff42 100644 (file)
@@ -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);