From 20a5866bcbb0d0772638488fdff02e4e8fa7cbb1 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 25 Feb 2012 09:30:36 +0100 Subject: [PATCH] kill a seriously weird array use --- qcsrc/client/View.qc | 2 +- qcsrc/client/hud.qc | 2 +- qcsrc/client/scoreboard.qc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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)))); -- 2.39.2