show the accuracy stats panel even if there are no stats :P
authorfruitiex <fruitiex@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Sat, 7 Nov 2009 21:12:34 +0000 (21:12 +0000)
committerfruitiex <fruitiex@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Sat, 7 Nov 2009 21:12:34 +0000 (21:12 +0000)
git-svn-id: svn://svn.icculus.org/nexuiz/trunk@8231 f962a42d-fe04-0410-a3ab-8c8b0445ebaa

data/qcsrc/client/sbar.qc

index 9dc6628..795a352 100644 (file)
@@ -1128,15 +1128,6 @@ float Sbar_WouldDrawScoreboard() {
        return 0;
 }
 
-float Sbar_AccuracyStatsExist() {
-       float i;
-       for(i = WEP_FIRST; i <= WEP_LAST; ++i) {
-               if(weapon_fired[i])
-                       return TRUE;
-       }
-       return FALSE;
-}
-
 float average_accuracy;
 vector Sbar_DrawScoreboardAccuracyStats(vector pos, vector rgb, vector bg_size)
 {
@@ -1151,8 +1142,6 @@ vector Sbar_DrawScoreboardAccuracyStats(vector pos, vector rgb, vector bg_size)
                rows = 1;
        float height = 40;
 
-       if(Sbar_AccuracyStatsExist() == FALSE)
-               return pos;
        if(warmup_stage)
        {
                pos_y += 40;