]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/turrets/sv_turrets.qc
Remove oldself variables
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / turrets / sv_turrets.qc
index d03ee2a3d379843931d98572d4ec21b4188824a4..92971878370ae1b205fd8c6a27ba61c1ab2a46d1 100644 (file)
@@ -495,9 +495,7 @@ entity turret_projectile(string _snd, float _size, float _health, float _death,
 void turret_do_updates(entity t_turret)
 {SELFPARAM();
        vector enemy_pos;
-       entity oldself;
 
-       oldself = self;
        setself(t_turret);
 
        enemy_pos = real_origin(self.enemy);
@@ -527,7 +525,7 @@ void turret_do_updates(entity t_turret)
        self.tur_impactent                       = trace_ent;
        self.tur_impacttime                     = vlen(self.tur_shotorg - trace_endpos) / self.shot_speed;
 
-       setself(oldself);
+       setself(this);
 }
 
 /**