]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/ctf.qc
Formating, protos on top, mutator dec at end
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / ctf.qc
index b940754be1c5af67f6a5484c4161fffe74597c11..02a09ca7144445c2ad48145fa4788f6aa1152a79 100644 (file)
@@ -9,7 +9,7 @@ string STR_PLAYER = "player";
 string ctf_temp_1;
 float order_page;
 
-void() menu_close =
+void menu_close()
 {
        menu_visible = false;
        menu_show = menu_show_error;
@@ -19,9 +19,9 @@ void() menu_close =
          strunzone(ctf_temp_1);*/
        
        localcmd("\nin_bindmap 0 0;");
-};
+}
 
-void() order_menu_render =
+void order_menu_render()
 {
        vector ps, po;
        float i, p, n;
@@ -56,9 +56,9 @@ void() order_menu_render =
        } else {
                menu_close();
        }
-};
+}
 
-float(float bInputType, float nPrimary, float nSecondary) order_menu_action =
+float order_menu_action(float bInputType, float nPrimary, float nSecondary)
 {
        string arg;
        float p, i, n, chose;
@@ -134,17 +134,17 @@ float(float bInputType, float nPrimary, float nSecondary) order_menu_action =
                return FALSE;
        }
        return TRUE;
-};
+}
 
-void() order_menu_show =
+void order_menu_show()
 {
        order_page = 0;
        menu_show = order_menu_render;
        menu_action = order_menu_action;
-};
+}
 
 
-void() ctf_menu_render =
+void ctf_menu_render()
 {
        vector ps, po;
        ps = '0 200 0';
@@ -162,9 +162,9 @@ void() ctf_menu_render =
        } else {
                menu_close();
        }
-};
+}
 
-float(float bInputType, float nPrimary, float nSecondary) ctf_menu_action =
+float ctf_menu_action(float bInputType, float nPrimary, float nSecondary)
 {
        string arg;
        if(bInputType != 0) // key down wanted
@@ -188,9 +188,9 @@ float(float bInputType, float nPrimary, float nSecondary) ctf_menu_action =
                return FALSE;
        }
        return TRUE;
-};
+}
 
-void() ctf_menu_show =
+void ctf_menu_show()
 {
        if(getstati(STAT_CTF_STATE) < 0)
                return;
@@ -198,9 +198,9 @@ void() ctf_menu_show =
        menu_action = ctf_menu_action;
        menu_visible = TRUE;
        //menu_default_binds();
-};
+}
 
-void() ctf_view =
+void ctf_view()
 {
        float stat;
        stat = getstati(STAT_CTF_STATE);
@@ -214,6 +214,6 @@ void() ctf_view =
        } else {
                drawstring('0 0 0', _("Awaiting orders..."), '8 8 0', '1 1 1', 0.5, 0);
        }
-};
+}
 
 #endif