From 08ab8ed64719f8eda713b0d02617fe174f2c5e4e Mon Sep 17 00:00:00 2001 From: FruitieX Date: Fri, 20 May 2011 16:48:27 +0300 Subject: [PATCH] finally fix accuracy stats, well hopefully. Testing shows that they do work :P --- qcsrc/server/playerstats.qc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qcsrc/server/playerstats.qc b/qcsrc/server/playerstats.qc index 85c20cd9d..46490a1b6 100644 --- a/qcsrc/server/playerstats.qc +++ b/qcsrc/server/playerstats.qc @@ -308,13 +308,13 @@ void PlayerStats_Accuracy(entity p) { w = get_weaponinfo(i); - PlayerStats_Event(p, strcat("acc-", w.netname, "-hit"), a.accuracy_hit[i]); - PlayerStats_Event(p, strcat("acc-", w.netname, "-fired"), a.accuracy_fired[i]); + PlayerStats_Event(p, strcat("acc-", w.netname, "-hit"), a.accuracy_hit[i-1]); + PlayerStats_Event(p, strcat("acc-", w.netname, "-fired"), a.accuracy_fired[i-1]); - PlayerStats_Event(p, strcat("acc-", w.netname, "-cnt-hit"), a.accuracy_cnt_hit[i]); - PlayerStats_Event(p, strcat("acc-", w.netname, "-cnt-fired"), a.accuracy_cnt_fired[i]); + PlayerStats_Event(p, strcat("acc-", w.netname, "-cnt-hit"), a.accuracy_cnt_hit[i-1]); + PlayerStats_Event(p, strcat("acc-", w.netname, "-cnt-fired"), a.accuracy_cnt_fired[i-1]); - PlayerStats_Event(p, strcat("acc-", w.netname, "-frags"), a.accuracy_frags[i]); + PlayerStats_Event(p, strcat("acc-", w.netname, "-frags"), a.accuracy_frags[i-1]); } } -- 2.39.2