From: terencehill Date: Mon, 9 Apr 2012 20:21:41 +0000 (+0200) Subject: Fix cl_cmd hud scoreboard_columns_set deafult and all ignoring the first field in... X-Git-Tag: xonotic-v0.7.0~194^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1d6cf29a215a8d11e44b41e7be7a3ab58b855f82;p=xonotic%2Fxonotic-data.pk3dir.git Fix cl_cmd hud scoreboard_columns_set deafult and all ignoring the first field in the presets default and all, actually hiding the ping column. Basically this together with the previous commit fixes the missing ping column already fixed by Samual (commit c4dc7659) but the right way --- diff --git a/qcsrc/client/scoreboard.qc b/qcsrc/client/scoreboard.qc index dcc18c48b..91dfda9f2 100644 --- a/qcsrc/client/scoreboard.qc +++ b/qcsrc/client/scoreboard.qc @@ -309,15 +309,15 @@ void Cmd_HUD_SetFields(float argc) // TODO: re enable with gametype dependant cvars? if(argc < 3) // no arguments provided - argc = tokenizebyseparator(strcat("x ", autocvar_scoreboard_columns), " "); + argc = tokenizebyseparator(strcat("0 1 ", autocvar_scoreboard_columns), " "); if(argc < 3) - argc = tokenizebyseparator(strcat("x ", HUD_DefaultColumnLayout()), " "); + argc = tokenizebyseparator(strcat("0 1 ", HUD_DefaultColumnLayout()), " "); if(argc == 3) { if(argv(2) == "default") - argc = tokenizebyseparator(strcat("x ", HUD_DefaultColumnLayout()), " "); + argc = tokenizebyseparator(strcat("0 1 ", HUD_DefaultColumnLayout()), " "); else if(argv(2) == "all") { string s; @@ -332,7 +332,7 @@ void Cmd_HUD_SetFields(float argc) if(ps_secondary != ps_primary) s = strcat(s, " ", scores_label[ps_secondary]); s = strcat(s, " ", scores_label[ps_primary]); - argc = tokenizebyseparator(strcat("x ", s), " "); + argc = tokenizebyseparator(strcat("0 1 ", s), " "); } }