]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/config.qc
s/world/NULL/
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / config.qc
index ad90baa6fe3eb399445421a0a239c8d25ad4e52a..26a05d10ac739f4b609a5ce39384be48e9ef86d8 100644 (file)
@@ -25,7 +25,7 @@ float W_Config_Queue_Compare(int root, int child, entity pass)
 void Dump_Weapon_Settings()
 {
        int totalweapons = 0, totalsettings = 0;
-       FOREACH(Weapons, it != WEP_Null, LAMBDA(
+       FOREACH(Weapons, it != WEP_Null, {
                // step 1: clear the queue
                WEP_CONFIG_COUNT = 0;
                for (int x = 0; x <= MAX_WEP_CONFIG; ++x)
@@ -35,7 +35,7 @@ void Dump_Weapon_Settings()
                it.wr_config(it);
 
                // step 3: sort queue
-               heapsort(WEP_CONFIG_COUNT, W_Config_Queue_Swap, W_Config_Queue_Compare, world);
+               heapsort(WEP_CONFIG_COUNT, W_Config_Queue_Swap, W_Config_Queue_Compare, NULL);
 
                // step 4: write queue
                WEP_CONFIG_WRITETOFILE(sprintf(
@@ -51,7 +51,7 @@ void Dump_Weapon_Settings()
                LOG_INFO(sprintf("#%d: %s: %d settings...\n", i, it.m_name, WEP_CONFIG_COUNT));
                totalweapons += 1;
                totalsettings += WEP_CONFIG_COUNT;
-       ));
+       });
 
        // clear queue now that we're finished
        WEP_CONFIG_COUNT = 0;