]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
More namespace fixing
authorterencehill <piuntn@gmail.com>
Thu, 4 Aug 2016 13:27:00 +0000 (15:27 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 4 Aug 2016 13:27:00 +0000 (15:27 +0200)
qcsrc/client/commands/cl_cmd.qc
qcsrc/client/commands/cl_cmd.qh
qcsrc/client/hud/panel/score.qc
qcsrc/client/hud/panel/scoreboard.qc
qcsrc/client/hud/panel/scoreboard.qh
qcsrc/client/main.qc

index 100bebf5fa697bd5c0cd3d57acf11ee0dd6fa147..9b8f58f94418e13163a120c30eaefcb3f37bc886 100644 (file)
@@ -307,13 +307,13 @@ void LocalCommand_hud(int request, int argc)
 
                                case "scoreboard_columns_set":
                                {
-                                       Cmd_HUD_SetFields(argc);
+                                       Cmd_Scoreboard_SetFields(argc);
                                        return;
                                }
 
                                case "scoreboard_columns_help":
                                {
-                                       Cmd_HUD_Help();
+                                       Cmd_Scoreboard_Help();
                                        return;
                                }
 
index 65a723389e793645f7f2a674a8277ad85d61f0a8..f1be4315fe5df1caeaaca2b6e29b62031bae2001 100644 (file)
@@ -1,7 +1,7 @@
 #pragma once
 
-void Cmd_HUD_SetFields(int);
-void Cmd_HUD_Help();
+void Cmd_Scoreboard_SetFields(int);
+void Cmd_Scoreboard_Help();
 
 // used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
 void LocalCommand_macro_write_aliases(int fh);
index c7128b1eb4feb531530f6e4b0315cb24d38df656..5f1a525fd7953599d66fb20bc90660a59dc91ae4 100644 (file)
@@ -6,7 +6,7 @@
 
 // Score (#7)
 
-void HUD_UpdatePlayerTeams();
+void Scoreboard_UpdatePlayerTeams();
 void HUD_Score_Rankings(vector pos, vector mySize, entity me)
 {
        float score;
@@ -71,8 +71,8 @@ void HUD_Score_Rankings(vector pos, vector mySize, entity me)
                return;
        }
 
-       if (!scoreboard_fade_alpha) // the scoreboard too calls HUD_UpdatePlayerTeams
-               HUD_UpdatePlayerTeams();
+       if (!scoreboard_fade_alpha) // the scoreboard too calls Scoreboard_UpdatePlayerTeams
+               Scoreboard_UpdatePlayerTeams();
        if (team_count)
        {
                // show team scores in the first line
index 2679fa2cdf7cc94e3fe1235cb50ebf17dd4f78b5..4ca9843c8effd0e67604246c62fed31b49b44179 100644 (file)
@@ -98,12 +98,12 @@ void HUD_InitScores()
        if(ts_secondary == -1)
                ts_secondary = ts_primary;
 
-       Cmd_HUD_SetFields(0);
+       Cmd_Scoreboard_SetFields(0);
 }
 
 float SetTeam(entity pl, float Team);
 //float lastpnum;
-void HUD_UpdatePlayerTeams()
+void Scoreboard_UpdatePlayerTeams()
 {
        float Team;
        entity pl, tmp;
@@ -251,7 +251,7 @@ void HUD_UpdateTeamPos(entity Team)
        }
 }
 
-void Cmd_HUD_Help()
+void Cmd_Scoreboard_Help()
 {
        LOG_INFO(_("You can modify the scoreboard using the ^2scoreboard_columns_set command.\n"));
        LOG_INFO(_("^3|---------------------------------------------------------------|\n"));
@@ -327,7 +327,7 @@ void Cmd_HUD_Help()
 " +ka/pickups +ka/bckills +ka/bctime +ft/revivals" \
 " -lms,rc,cts,inv,nb/score"
 
-void Cmd_HUD_SetFields(int argc)
+void Cmd_Scoreboard_SetFields(int argc)
 {
     TC(int, argc);
        int i, j, slash;
@@ -1302,7 +1302,7 @@ void HUD_DrawScoreboard()
        if(!autocvar__hud_configure)
                panel_pos.y = max((autocvar_con_notify * autocvar_con_notifysize), panel_pos.y);
 
-       HUD_UpdatePlayerTeams();
+       Scoreboard_UpdatePlayerTeams();
 
        vector pos, tmp;
        entity pl, tm;
index c2d928f5e3d5d94f94ef85233b2beca03ee2d7fe..d65c448232ebf754f7dc169574515159657e7b56 100644 (file)
@@ -4,7 +4,7 @@
 float scoreboard_active;
 float scoreboard_fade_alpha;
 
-void Cmd_HUD_SetFields(float argc);
+void Cmd_Scoreboard_SetFields(float argc);
 void HUD_DrawScoreboard();
 void HUD_InitScores();
 void HUD_UpdatePlayerPos(entity pl);
index 2ca67871c714fd493b41b5a597a0297f59067509..02aa2490bcd09ce69d3d7012576981fd95d952da 100644 (file)
@@ -137,7 +137,7 @@ void CSQC_Init()
        for(int i = 0; i < MAX_SBT_FIELDS; ++i)
                sbt_field_title[i] = strzone("(null)");
 
-       Cmd_HUD_SetFields(0);
+       Cmd_Scoreboard_SetFields(0);
 
        postinit = false;
 
@@ -323,7 +323,7 @@ void Playerchecker_Think(entity this)
                                e.ping_movementloss = 0;
                                //e.gotscores = 0; // we might already have the scores...
                                int t = entcs_GetScoreTeam(i);
-                               if (t) SetTeam(e, t); // will not hurt; later updates come with HUD_UpdatePlayerTeams
+                               if (t) SetTeam(e, t); // will not hurt; later updates come with Scoreboard_UpdatePlayerTeams
                                RegisterPlayer(e);
                                HUD_UpdatePlayerPos(e);
                        }