From: terencehill Date: Thu, 24 Aug 2017 17:30:44 +0000 (+0200) Subject: Initialize weapon_accuracy array to the default value on client start X-Git-Tag: xonotic-v0.8.5~2514 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7c2193e41772c4f672af8f23dbf158565da2aa11;p=xonotic%2Fxonotic-data.pk3dir.git Initialize weapon_accuracy array to the default value on client start --- diff --git a/qcsrc/client/main.qc b/qcsrc/client/main.qc index 64b340622..adc2ae7bd 100644 --- a/qcsrc/client/main.qc +++ b/qcsrc/client/main.qc @@ -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)