]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Clear weapon config queue when finished dumping settings
authorSamual Lenks <samual@xonotic.org>
Tue, 2 Jul 2013 20:30:02 +0000 (16:30 -0400)
committerSamual Lenks <samual@xonotic.org>
Tue, 2 Jul 2013 20:30:02 +0000 (16:30 -0400)
qcsrc/common/weapons/config.qc

index 4cd2c3bea26eb939d2185e2c160a97534ae5d75b..2f8bc06f7caeedf6b52a1b08f5f0049afc46c0e6 100644 (file)
@@ -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));
 }