From: terencehill Date: Tue, 5 Feb 2013 15:37:35 +0000 (+0100) Subject: Fix accuracy board always showing 0% average accuracy, long time bug present since... X-Git-Tag: xonotic-v0.7.0~98^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a0d33b4ec5f28ad4fea2a972f20e8b755a7b2240;p=xonotic%2Fxonotic-data.pk3dir.git Fix accuracy board always showing 0% average accuracy, long time bug present since Nov 22 2010 commit 0fbd36780 --- diff --git a/qcsrc/client/scoreboard.qc b/qcsrc/client/scoreboard.qc index a576ae493..1aa1b6a43 100644 --- a/qcsrc/client/scoreboard.qc +++ b/qcsrc/client/scoreboard.qc @@ -1044,7 +1044,7 @@ vector HUD_DrawScoreboardAccuracyStats(vector pos, vector rgb, vector bg_size) } if(weapons_with_stats) - average_accuracy = floor(average_accuracy / weapons_with_stats); + average_accuracy = floor((average_accuracy * 100 / weapons_with_stats) + 0.5); if(rows == 2) pos_x -= weapon_width / 2;