]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/func/button.qc
Add an argument to SetMovedir
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / func / button.qc
index a55f02ef2fcc003852ef8aadde68dc799326f147..0e2252130c381701fa2277947166093e7915f065 100644 (file)
@@ -112,9 +112,9 @@ When a button is touched, it moves some distance in the direction of it's angle,
 2) metallic click
 3) in-out
 */
-void spawnfunc_func_button()
-{SELFPARAM();
-       SetMovedir ();
+spawnfunc(func_button)
+{
+       SetMovedir(self);
 
        if (!InitMovingBrushTrigger())
                return;