From: Mario Date: Fri, 19 Apr 2013 09:27:46 +0000 (+1000) Subject: Make client minstagib check a local float (still buggy if both minsta & nex are avail... X-Git-Tag: xonotic-v0.7.0~55^2~3^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e163852e1147a86869024e2db1b6adb6d14fb340;p=xonotic%2Fxonotic-data.pk3dir.git Make client minstagib check a local float (still buggy if both minsta & nex are available) --- diff --git a/qcsrc/client/scoreboard.qc b/qcsrc/client/scoreboard.qc index 2ec7db062..69d9a3c94 100644 --- a/qcsrc/client/scoreboard.qc +++ b/qcsrc/client/scoreboard.qc @@ -947,7 +947,6 @@ float HUD_WouldDrawScoreboard() { return 0; } -float g_minstagib; float average_accuracy; vector HUD_DrawScoreboardAccuracyStats(vector pos, vector rgb, vector bg_size) { @@ -962,6 +961,7 @@ vector HUD_DrawScoreboardAccuracyStats(vector pos, vector rgb, vector bg_size) float fontsize = height * 1/3; float weapon_height = height * 2/3; float weapon_width = sbwidth / weapon_cnt; + float g_minstagib = 0; drawstring(pos, sprintf(_("Accuracy stats (average %d%%)"), average_accuracy), hud_fontsize, '1 1 1', scoreboard_alpha_fg, DRAWFLAG_NORMAL); pos_y += 1.25 * hud_fontsize_y + autocvar_scoreboard_border_thickness;