]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Initialize weapon_accuracy array to the default value on client start
authorterencehill <piuntn@gmail.com>
Thu, 24 Aug 2017 17:30:44 +0000 (19:30 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 24 Aug 2017 17:30:44 +0000 (19:30 +0200)
qcsrc/client/main.qc

index 64b340622a16a2ee2a3ea5f87d98efb97b1d3ea6..adc2ae7bd3c197203db08b6e6f150051a18d3a3c 100644 (file)
@@ -152,6 +152,9 @@ void CSQC_Init()
 
        GetTeam(NUM_SPECTATOR, true); // add specs first
 
+       for (int w = 0; w <= WEP_LAST - WEP_FIRST; ++w)
+               weapon_accuracy[w] = -1;
+
        // precaches
 
        if(autocvar_cl_reticle)