]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon/seeker.qc
Replace all direct assignments to self with setself(e)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / seeker.qc
index 9708af05b4bc66191abbfb92da6214f3d4a0bf32..eaba831cc90c93a4a7d17b0703b990ed7e66c9b1 100644 (file)
@@ -426,7 +426,7 @@ void W_Seeker_Vollycontroller_Think(void) // TODO: Merge this with W_Seeker_Atta
        self.nextthink = time + WEP_CVAR(seeker, missile_delay) * W_WeaponRateFactor();
 
        oldself = self;
-       self = self.realowner;
+       setself(self.realowner);
 
        oldenemy = self.enemy;
        self.enemy = oldself.enemy;
@@ -450,7 +450,7 @@ void W_Seeker_Vollycontroller_Think(void) // TODO: Merge this with W_Seeker_Atta
        }
 
        self.enemy = oldenemy;
-       self = oldself;
+       setself(oldself);
 }
 
 void W_Seeker_Tracker_Think(void)