]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/playerstats.qc
Declare more ints as ints
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / playerstats.qc
index bd9bb9849a81ca72df2fe74b1d35f52e51f1bb3c..4a4f63686290f64740ed26d332757d3d93ab6a42 100644 (file)
@@ -3,7 +3,6 @@
 #elif defined(SVQC)
        #include "../dpdefs/progsdefs.qh"
     #include "../dpdefs/dpextensions.qh"
-    #include "../server/sys-post.qh"
     #include "constants.qh"
     #include "util.qh"
     #include "urllib.qh"
@@ -110,12 +109,11 @@ float PlayerStats_GameReport_Event(string prefix, string event_id, float value)
 
 void PlayerStats_GameReport_Accuracy(entity p)
 {
-       entity w;
-       float i;
+       int i;
 
        for(i = WEP_FIRST; i <= WEP_LAST; ++i)
        {
-               w = get_weaponinfo(i);
+               entity w = get_weaponinfo(i);
 
                #define ACCMAC(suffix,field) \
                        PS_GR_P_ADDVAL(p, sprintf("acc-%s-%s", w.netname, suffix), p.accuracy.(field[i-1]));