From c545f117f61cd4afbbe6393464d6043c770ac84b Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Tue, 2 Jul 2013 16:30:02 -0400 Subject: [PATCH] Clear weapon config queue when finished dumping settings --- qcsrc/common/weapons/config.qc | 7 +++++++ 1 file changed, 7 insertions(+) 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)); } -- 2.39.2