]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
seeker volley controller: work properly with IT_UNLIMITED_WEAPON_AMMO
authorRudolf Polzer <divverent@alientrap.org>
Mon, 10 May 2010 11:01:19 +0000 (13:01 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 10 May 2010 11:01:19 +0000 (13:01 +0200)
qcsrc/server/w_seeker.qc

index 4e1bc7f9bdf9cbeb83fd60d020081e91affcfbd2..a7cb61805d18d891f81837f738b3bba00973bd47 100644 (file)
@@ -162,7 +162,7 @@ void Seeker_Fire_Missile(vector f_diff)
 {
        local entity missile;
 
-       if not(self.items & IT_UNLIMITED_WEAPON_AMMO)
+       if not(self.owner.items & IT_UNLIMITED_WEAPON_AMMO)
                self.ammo_rockets = self.ammo_rockets - cvar("g_balance_seeker_missile_ammo");
 
        makevectors(self.v_angle);
@@ -216,6 +216,7 @@ void Seeker_Vollycontroler_Think()
        entity oldself,oldenemy;
        self.cnt = self.cnt - 1;
 
+       if not(self.items & IT_UNLIMITED_WEAPON_AMMO)
        if ((self.owner.ammo_rockets < cvar("g_balance_seeker_missile_ammo")) || (self.cnt <= -1) || (self.owner.deadflag != DEAD_NO))
        {
                remove(self);