]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make client minstagib check a local float (still buggy if both minsta & nex are avail...
authorMario <mario.mario@y7mail.com>
Fri, 19 Apr 2013 09:27:46 +0000 (19:27 +1000)
committerMario <mario.mario@y7mail.com>
Fri, 19 Apr 2013 09:27:46 +0000 (19:27 +1000)
qcsrc/client/scoreboard.qc

index 2ec7db0623025d7bc813afae95a299956a0fd63c..69d9a3c948e5b1bd851d21fbb7570d39c8f2d7cd 100644 (file)
@@ -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;