]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/func/button.qc
Step 6: complete
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / func / button.qc
index d8a267608a4fe963f1185171417044e80f843b0b..a8ec50a86540a7be10fed5418c2bcd1b2b1786a3 100644 (file)
@@ -28,7 +28,7 @@ void button_return(entity this)
 }
 
 
-void button_blocked()
+void button_blocked(entity this)
 {
        // do nothing, just don't come all the way back out
 }
@@ -119,7 +119,7 @@ spawnfunc(func_button)
                return;
        this.effects |= EF_LOWPRECISION;
 
-       this.blocked = button_blocked;
+       setblocked(this, button_blocked);
        this.use = button_use;
 
 //     if (this.health == 0) // all buttons are now shootable