]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Also get rid of type(..) function_name = constructs
authorJakob MG <jakob_mg@hotmail.com>
Tue, 11 Oct 2011 08:34:28 +0000 (10:34 +0200)
committerJakob MG <jakob_mg@hotmail.com>
Tue, 11 Oct 2011 08:34:28 +0000 (10:34 +0200)
qcsrc/client/Main.qc
qcsrc/client/ctf.qc
qcsrc/client/teamradar.qc
qcsrc/menu/menu.qc
qcsrc/server/bot/havocbot/roles.qc
qcsrc/server/ctf.qc
qcsrc/server/func_breakable.qc

index 74633c55869ee3face749a53fbe0192d2a964373..6f116d90221d26e0a6e014a547582678b8fd6f00 100644 (file)
@@ -25,7 +25,7 @@ void cvar_clientsettemp_restore()
                        cvar_set(e.netname, e.message);
 }
 
-void() menu_show_error =
+void menu_show_error()
 {
        drawstring('0 200 0', _("ERROR - MENU IS VISIBLE BUT NO MENU WAS DEFINED!"), '8 8 0', '1 0 0', 1, 0);
 }
@@ -33,7 +33,7 @@ void() menu_show_error =
 // CSQC_Init : Called every time the CSQC code is initialized (essentially at map load)
 // Useful for precaching things
 
-void() menu_sub_null =
+void menu_sub_null()
 {
 }
 
@@ -937,7 +937,7 @@ void Ent_ReadAccuracy(void)
 void Ent_RadarLink();
 void Ent_Init();
 void Ent_ScoresInfo();
-void(float bIsNewEntity) CSQC_Ent_Update =
+void CSQC_Ent_Update(float bIsNewEntity)
 {
        float t;
        float savetime;
index aecef1a33addfb198e90485787a8771e976d83de..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;
@@ -21,7 +21,7 @@ void() menu_close =
        localcmd("\nin_bindmap 0 0;");
 }
 
-void() order_menu_render =
+void order_menu_render()
 {
        vector ps, po;
        float i, p, n;
@@ -58,7 +58,7 @@ void() order_menu_render =
        }
 }
 
-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;
@@ -136,7 +136,7 @@ float(float bInputType, float nPrimary, float nSecondary) order_menu_action =
        return TRUE;
 }
 
-void() order_menu_show =
+void order_menu_show()
 {
        order_page = 0;
        menu_show = order_menu_render;
@@ -144,7 +144,7 @@ void() order_menu_show =
 }
 
 
-void() ctf_menu_render =
+void ctf_menu_render()
 {
        vector ps, po;
        ps = '0 200 0';
@@ -164,7 +164,7 @@ void() ctf_menu_render =
        }
 }
 
-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
@@ -190,7 +190,7 @@ float(float bInputType, float nPrimary, float nSecondary) ctf_menu_action =
        return TRUE;
 }
 
-void() ctf_menu_show =
+void ctf_menu_show()
 {
        if(getstati(STAT_CTF_STATE) < 0)
                return;
@@ -200,7 +200,7 @@ void() ctf_menu_show =
        //menu_default_binds();
 }
 
-void() ctf_view =
+void ctf_view()
 {
        float stat;
        stat = getstati(STAT_CTF_STATE);
index e499b587150c867ff6b9fe82e41b3c6d83a76515..dd1952a5c2f36841ba383e026e4b266d63b2b111 100644 (file)
@@ -80,7 +80,7 @@ void draw_teamradar_background(float fg)
        }
 }
 
-void(vector coord3d, vector pangles, vector rgb) draw_teamradar_player =
+void draw_teamradar_player(vector coord3d, vector pangles, vector rgb)
 {
        vector coord, rgb2;
 
index fe3753d8419f466b7f61a627cd0d6091b0a456e3..c8c3b62f4f61225c1493722248c19016eeaa15d5 100644 (file)
@@ -18,7 +18,7 @@ float menuMouseMode;
 
 void SUB_Null() { }
 
-void() m_init =
+void m_init()
 {
        cvar_set("_menu_alpha", "0");
        prvm_language = strzone(cvar_string("prvm_language"));
@@ -95,7 +95,7 @@ void UpdateConWidthHeight()
        }
 }
 
-void() m_init_delayed =
+void m_init_delayed()
 {
        float fh, glob, n, i;
        string s;
@@ -173,7 +173,7 @@ void() m_init_delayed =
                m_display(); // delayed menu display
 }
 
-void(float key, float ascii) m_keyup =
+void m_keyup (float key, float ascii)
 {
        if(!menuInitialized)
                return;
@@ -197,7 +197,7 @@ void(float key, float ascii) m_keyup =
        if(key == K_SHIFT) menuShiftState -= (menuShiftState & S_SHIFT);
 }
 
-void(float key, float ascii) m_keydown =
+void m_keydown(float key, float ascii)
 {
        if(!menuInitialized)
                return;
@@ -274,7 +274,7 @@ void draw_Picture_Aligned(vector algn, float scalemode, string img, float a)
        draw_Picture(org, img, isz, '1 1 1', a);
 }
 
-void(string img, float a, string algn, float force1) drawBackground =
+void drawBackground(string img, float a, string algn, float force1)
 {
        if(main.mainNexposee.ModalController_state == 0)
                return;
@@ -600,7 +600,7 @@ void m_tooltip(vector pos)
        }
 }
 
-void() m_draw =
+void m_draw()
 {
        float t;
        float realFrametime;
@@ -779,7 +779,7 @@ void() m_draw =
        frametime = 0;
 }
 
-void() m_display =
+void m_display()
 {
        Menu_Active = true;
        setkeydest(KEY_MENU);
@@ -796,7 +796,7 @@ void() m_display =
        main.showNotify(main);
 }
 
-void() m_hide =
+void m_hide()
 {
        Menu_Active = false;
        setkeydest(KEY_GAME);
@@ -809,7 +809,7 @@ void() m_hide =
        main.hideNotify(main);
 }
 
-void() m_toggle =
+void m_toggle()
 {
        if(Menu_Active)
                m_hide();
@@ -817,7 +817,7 @@ void() m_toggle =
                m_display();
 }
 
-void() m_shutdown =
+void m_shutdown()
 {
        entity e;
 
@@ -884,7 +884,7 @@ void m_setpointerfocus(entity wnd)
        }
 }
 
-void(string itemname) m_goto =
+void m_goto(string itemname)
 {
        entity e;
        if(!menuInitialized)
@@ -914,7 +914,7 @@ void(string itemname) m_goto =
        }
 }
 
-void() m_goto_skin_selector =
+void m_goto_skin_selector()
 {
        if(!menuInitialized)
                return;
@@ -922,7 +922,7 @@ void() m_goto_skin_selector =
        m_goto("skinselector");
 }
 
-void() m_goto_language_selector =
+void m_goto_language_selector()
 {
        if(!menuInitialized)
                return;
@@ -930,7 +930,7 @@ void() m_goto_language_selector =
        m_goto("languageselector");
 }
 
-void() m_goto_video_settings =
+void m_goto_video_settings()
 {
        if(!menuInitialized)
                return;
index b208e00b3b2a4d76a66cdee5a676009f9ecc8ca5..d0c10651b88134d364377b5f8edb641658710ad7 100644 (file)
@@ -210,7 +210,7 @@ void havocbot_goalrating_enemyplayers(float ratingscale, vector org, float sradi
 }
 
 // choose a role according to the situation
-void() havocbot_role_dm;
+void havocbot_role_dm();
 
 //DOM:
 //go to best items, or control points you don't own
index cf0850d36cd0ab152174b83260d707f8e27d0e0e..6f7198c2a9f225e803fe7f63d5faa557063262a6 100644 (file)
@@ -1080,7 +1080,7 @@ void ctf_setstatus()
        }
 }
 /*
-entity(float cteam) ctf_team_has_commander =
+entity ctf_team_has_commander(float cteam)
 {
        entity pl;
        if(cteam != COLOR_TEAM1 || cteam != COLOR_TEAM2)
@@ -1094,13 +1094,13 @@ entity(float cteam) ctf_team_has_commander =
        return world;
 }
 
-void(entity e, float st) ctf_setstate =
+void ctf_setstate(entity e, float st)
 {
        e.ctf_state = st;
        ++e.version;
 }
 
-void(float cteam) ctf_new_commander =
+void ctf_new_commander(float cteam)
 {
        entity pl, plmax;
 
@@ -1125,7 +1125,7 @@ void(float cteam) ctf_new_commander =
        centerprint(plmax, "^3You're the commander now!\n");
 }
 
-void() ctf_clientconnect =
+void ctf_clientconnect()
 {
        self.iscommander = FALSE;
 
@@ -1141,7 +1141,7 @@ void() ctf_clientconnect =
        }
 }
 
-void() ctf_playerchanged =
+void ctf_playerchanged()
 {
        if(!self.team || self.classname != "player") {
                ctf_setstate(self, -1);
@@ -1166,7 +1166,7 @@ void() ctf_playerchanged =
        ctf_new_commander(self.team);
 }
 
-void() ctf_clientdisconnect =
+void ctf_clientdisconnect()
 {
        if(self.iscommander)
        {
@@ -1175,7 +1175,7 @@ void() ctf_clientdisconnect =
 }
 
 entity GetPlayer(string);
-float() ctf_clientcommand =
+float ctf_clientcommand()
 {
        entity e;
        if(argv(0) == "order") {
index a667101d28d8eb469fe9c8660f5a26cbc3a7215d..4d29b014faff68c9528bb954d3d51512e88b6d3e 100644 (file)
@@ -37,7 +37,7 @@ void func_breakable_damage(entity inflictor, entity attacker, float damage, floa
 // func_breakable
 // - basically func_assault_destructible for general gameplay use
 //
-void LaunchDebris (string debrisname, vector force) =
+void LaunchDebris (string debrisname, vector force)
 {
        local   entity dbr;