]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/func/conveyor.qc
Fix the use of self, activator and other globals in .use
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / func / conveyor.qc
index 583c737438ac3fae10131e2497018df65789ca38..93b6502de50990911c9863613c33fb9ad99f022e 100644 (file)
@@ -58,11 +58,11 @@ void conveyor_think()
 
 #ifdef SVQC
 
-void conveyor_use()
-{SELFPARAM();
-       self.state = !self.state;
+void conveyor_use(entity this, entity actor, entity trigger)
+{
+       this.state = !this.state;
 
-       self.SendFlags |= 2;
+       this.SendFlags |= 2;
 }
 
 void conveyor_reset(entity this)
@@ -116,7 +116,7 @@ void conveyor_init()
        this.nextthink = time;
        IFTARGETED
        {
-               this.use = conveyor_use;
+               this.use1 = conveyor_use;
                this.reset = conveyor_reset;
                this.reset(this);
        }