]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/turrets/util.qc
Purge SELFPARAM from the turret code
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / turrets / util.qc
index 0d178a5cba654f3a9606b810dfeafc835faeb648..805e13012b2328f095fbf4e0cb47c22ef9c95667 100644 (file)
@@ -93,21 +93,21 @@ void FireImoBeam(entity this, vector start, vector end, vector smin, vector smax
 }
 
 #ifdef TURRET_DEBUG
-void marker_think()
-{SELFPARAM();
-       if(self.cnt)
-       if(self.cnt < time)
+void marker_think(entity this, )
+{
+       if(this.cnt)
+       if(this.cnt < time)
        {
-               setthink(self, SUB_Remove);
-               self.nextthink = time;
+               setthink(this, SUB_Remove);
+               this.nextthink = time;
                return;
        }
 
-       self.frame += 1;
-       if(self.frame > 29)
-               self.frame = 0;
+       this.frame += 1;
+       if(this.frame > 29)
+               this.frame = 0;
 
-       self.nextthink = time;
+       this.nextthink = time;
 }
 
 void mark_error(vector where,float lifetime)