]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/portals.qc
Use SELFPARAM() in every function that uses self
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / portals.qc
index 09cd6e9d20810481f2adb9dceb18d16271ee5927..e02c04d6b25e5bcffc0139424d51a2c0fadfad0b 100644 (file)
@@ -248,7 +248,7 @@ float Portal_WillHitPlane(vector eorg, vector emins, vector emaxs, vector evel,
 }
 
 void Portal_Touch()
-{
+{SELFPARAM();
        vector g;
 
 #ifdef PORTALS_ARE_NOT_SOLID
@@ -427,7 +427,7 @@ void Portal_Remove(entity portal, float killed)
 }
 
 void Portal_Damage(entity inflictor, entity attacker, float damage, int deathtype, vector hitloc, vector force)
-{
+{SELFPARAM();
        if(deathtype == DEATH_TELEFRAG)
                return;
        if(attacker != self.aiment)
@@ -439,7 +439,7 @@ void Portal_Damage(entity inflictor, entity attacker, float damage, int deathtyp
 }
 
 void Portal_Think_TryTeleportPlayer(entity e, vector g)
-{
+{SELFPARAM();
        if(!Portal_WillHitPlane(e.origin, e.mins, e.maxs, e.velocity + g, self.origin, v_forward, self.maxs.x))
                return;
 
@@ -451,7 +451,7 @@ void Portal_Think_TryTeleportPlayer(entity e, vector g)
 }
 
 void Portal_Think()
-{
+{SELFPARAM();
        entity e, o;
        vector g;
 
@@ -494,7 +494,7 @@ void Portal_Think()
 }
 
 float Portal_Customize()
-{
+{SELFPARAM();
        if(IS_SPEC(other))
                other = other.enemy;
        if(other == self.aiment)
@@ -574,7 +574,7 @@ void Portal_ClearAll(entity own)
        W_Porto_Remove(own);
 }
 void Portal_RemoveLater_Think()
-{
+{SELFPARAM();
        Portal_Remove(self, self.cnt);
 }
 void Portal_RemoveLater(entity portal, float kill)