From: Rudolf Polzer Date: Sat, 25 Feb 2012 08:30:36 +0000 (+0100) Subject: kill a seriously weird array use X-Git-Tag: xonotic-v0.6.0~42^2~13 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=20a5866bcbb0d0772638488fdff02e4e8fa7cbb1;p=xonotic%2Fxonotic-data.pk3dir.git kill a seriously weird array use --- diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index a08117616..66d7dd31c 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -1497,7 +1497,7 @@ void CSQC_common_hud(void) acc_lev[i] = stof(argv(i)) / 100.0; } // let know that acc_col[] needs to be loaded - acc_col_x[0] = -1; + acc_col[0] = '-1 0 0'; } HUD_Main(); // always run these functions for alpha checks diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 04f3020cb..d6331d558 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -662,7 +662,7 @@ void HUD_Weapons(void) if(autocvar_hud_panel_weapons_accuracy && acc_levels) { show_accuracy = true; - if (acc_col_x[0] == -1) + if (acc_col[0] == '-1 0 0') for (i = 0; i < acc_levels; ++i) acc_col[i] = stov(cvar_string(strcat("accuracy_color", ftos(i)))); } diff --git a/qcsrc/client/scoreboard.qc b/qcsrc/client/scoreboard.qc index 05c8df88c..58273dc19 100644 --- a/qcsrc/client/scoreboard.qc +++ b/qcsrc/client/scoreboard.qc @@ -985,7 +985,7 @@ vector HUD_DrawScoreboardAccuracyStats(vector pos, vector rgb, vector bg_size) if (!acc_levels) rgb = '1 1 1'; - else if (acc_col_x[0] == -1) + else if (acc_col[0] == '-1 0 0') for (i = 0; i < acc_levels; ++i) acc_col[i] = stov(cvar_string(strcat("accuracy_color", ftos(i))));