]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/mutator_midair.qc
Use SELFPARAM() in every function that uses self
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / mutator_midair.qc
index 686df9a567ad123316f2200c08e1e9d0c1efc4a9..3ac73031713d92d47be9d605f5472cf1bbd3ea3b 100644 (file)
@@ -5,7 +5,7 @@
 .float midair_shieldtime;
 
 MUTATOR_HOOKFUNCTION(midair_PlayerDamage)
-{
+{SELFPARAM();
        if(IS_PLAYER(frag_attacker))
        if(IS_PLAYER(frag_target))
        if(time < self.midair_shieldtime)
@@ -15,7 +15,7 @@ MUTATOR_HOOKFUNCTION(midair_PlayerDamage)
 }
 
 MUTATOR_HOOKFUNCTION(midair_PlayerPowerups)
-{
+{SELFPARAM();
        if(time >= game_starttime)
        if(self.flags & FL_ONGROUND)
        {
@@ -27,7 +27,7 @@ MUTATOR_HOOKFUNCTION(midair_PlayerPowerups)
 }
 
 MUTATOR_HOOKFUNCTION(midair_PlayerSpawn)
-{
+{SELFPARAM();
        if(IS_BOT_CLIENT(self))
                self.bot_moveskill = 0; // disable bunnyhopping