]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/defer.qh
Reset: `this` param
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / defer.qh
index 749e4a665ec882a23f2e247551fbdc91f7c5f404..0fa29747543a8aa0da3fd74935e7dfd1a5971b0c 100644 (file)
        class(Defer).void() think;
        class(Defer).float nextthink;
 
-/*
-==================
-SUB_Remove
+       /** Remove self */
+       void SUB_Remove(entity this)
+       {
+               remove(this);
+       }
 
-Remove self
-==================
-*/
-       void SUB_Remove()
+       /** Remove self */
+       void SUB_Remove_self()
        {
                SELFPARAM();
-               remove(self);
+               remove(this);
        }
 
        void defer_think()
        {
                SELFPARAM();
-               self.think     = SUB_Remove;
+               self.think     = SUB_Remove_self;
                self.nextthink = time;
                WITH(entity, self, self.owner, self.use());
        }