]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/mutator_physical_items.qc
Use SELFPARAM() in every function that uses self
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / mutator_physical_items.qc
index 08bb81a9f6a9d6a646a1103a6771b7b23eae7952..892211ce0373386d128c21090ad6617c21a2767a 100644 (file)
@@ -5,7 +5,7 @@
 .vector spawn_origin, spawn_angles;
 
 void physical_item_think()
-{
+{SELFPARAM();
        self.nextthink = time;
 
        self.alpha = self.owner.alpha; // apply fading and ghosting
@@ -40,7 +40,7 @@ void physical_item_think()
 }
 
 void physical_item_touch()
-{
+{SELFPARAM();
        if(!self.cnt) // not for dropped items
        if (ITEM_TOUCH_NEEDKILL())
        {
@@ -50,7 +50,7 @@ void physical_item_touch()
 }
 
 void physical_item_damage(entity inflictor, entity attacker, float damage, int deathtype, vector hitloc, vector force)
-{
+{SELFPARAM();
        if(!self.cnt) // not for dropped items
        if(ITEM_DAMAGE_NEEDKILL(deathtype))
        {
@@ -60,7 +60,7 @@ void physical_item_damage(entity inflictor, entity attacker, float damage, int d
 }
 
 MUTATOR_HOOKFUNCTION(item_spawning)
-{
+{SELFPARAM();
        if(self.owner == world && autocvar_g_physical_items <= 1)
                return false;
        if (self.spawnflags & 1) // floating item