]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/controlpoint.qc
Use SELFPARAM() in every function that uses self
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / controlpoint.qc
index 3b8901cf37695abafb9873d6daf55fd561c14a0b..83ee0316bdbda31b3cda8ac612b3d1577743004b 100644 (file)
@@ -35,7 +35,7 @@ void cpicon_precache()
 }
 
 void cpicon_draw()
-{
+{SELFPARAM();
        if(time < self.move_time) { return; }
 
        if(self.cp_bob_dmg_z > 0)
@@ -99,7 +99,7 @@ void cpicon_draw()
 }
 
 void cpicon_damage(float hp)
-{
+{SELFPARAM();
        if(!self.iscaptured) { return; }
 
        if(hp < self.max_health * 0.25)
@@ -121,7 +121,7 @@ void cpicon_damage(float hp)
 }
 
 void cpicon_construct()
-{
+{SELFPARAM();
        self.netname = "Control Point Icon";
 
        setmodel(self, "models/onslaught/controlpoint_icon.md3");
@@ -155,7 +155,7 @@ void cpicon_construct()
 
 .vector glowmod;
 void cpicon_changeteam()
-{
+{SELFPARAM();
        if(self.team)
        {
                self.glowmod = Team_ColorRGB(self.team - 1);
@@ -171,7 +171,7 @@ void cpicon_changeteam()
 }
 
 void ent_cpicon()
-{
+{SELFPARAM();
        int sf = ReadByte();
 
        if(sf & CPSF_SETUP)