]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Attempt to fix scoreboard issue with hiding ping field
authorSamual <samual@xonotic.org>
Tue, 27 Dec 2011 04:52:00 +0000 (23:52 -0500)
committerSamual <samual@xonotic.org>
Tue, 27 Dec 2011 04:52:00 +0000 (23:52 -0500)
qcsrc/client/command/cl_cmd.qc
qcsrc/client/scoreboard.qc

index 19c9dbcfb5d7c2be78aa3dfc988b51180b69327b..0a1783eea128ee59289074c339904ba98ea7382d 100644 (file)
@@ -435,6 +435,11 @@ void GameCommand(string command)
 {
        float argc = tokenize_console(command);
 
+       // Guide for working with argc arguments by example:
+       // argc:   1    - 2      - 3     - 4
+       // argv:   0    - 1      - 2     - 3 
+       // cmd     vote - master - login - password
+
        if(strtolower(argv(0)) == "help") 
        {
                if(argc == 1) 
index f560bb12f46f5e00bb7e4e35d9694965579fe1f9..3e5a5b5b3f976691944b32d3a46870ef4833e8fe 100644 (file)
@@ -341,10 +341,10 @@ void Cmd_HUD_SetFields(float argc)
 
        hud_fontsize = HUD_GetFontsize("hud_fontsize"); 
 
-       for(i = 0; i < argc - 2; ++i)
+       for(i = 0; i < argc - 1; ++i)
        {
                float nocomplain;
-               str = argv(i+2);
+               str = argv(i+1);
 
                nocomplain = FALSE;
                if(substring(str, 0, 1) == "?")