]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/mutator_physical_items.qc
Update uses of self
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / mutator_physical_items.qc
index d02158ffc1496a22305c9ab02e79e0eeae1819b3..0fc96a1347cdb7697fd73f5453458aa25522e25c 100644 (file)
@@ -100,9 +100,7 @@ MUTATOR_HOOKFUNCTION(item_spawning)
                setorigin(wep, wep.origin + '0 0 1');
                entity oldself;
                oldself = self;
-               self = wep;
-               builtin_droptofloor();
-               self = oldself;
+               WITH(entity, self, wep, builtin_droptofloor());
        }
 
        wep.spawn_origin = wep.origin;