From: Samual Lenks Date: Tue, 2 Jul 2013 20:30:02 +0000 (-0400) Subject: Clear weapon config queue when finished dumping settings X-Git-Tag: xonotic-v0.8.0~152^2~335 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c545f117f61cd4afbbe6393464d6043c770ac84b;p=xonotic%2Fxonotic-data.pk3dir.git Clear weapon config queue when finished dumping settings --- diff --git a/qcsrc/common/weapons/config.qc b/qcsrc/common/weapons/config.qc index 4cd2c3bea..2f8bc06f7 100644 --- a/qcsrc/common/weapons/config.qc +++ b/qcsrc/common/weapons/config.qc @@ -51,5 +51,12 @@ void Dump_Weapon_Settings(void) print(sprintf("#%d: %s: %d settings...\n", i, W_Name(i), WEP_CONFIG_COUNT)); totalsettings += WEP_CONFIG_COUNT; } + + // clear queue now that we're finished + WEP_CONFIG_COUNT = 0; + for(x = 0; x <= MAX_WEP_CONFIG; ++x) + { wep_config_queue[x] = string_null; } + + // extra information print(sprintf("Totals: %d weapons, %d settings\n", (i - 1), totalsettings)); }