X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fconfig.qc;h=7d1b4e3d262067f491fd6a555f46d1bd1f020769;hb=3ae1efa7401791e42e3171f4db2cc2d38adde088;hp=0448f4874a26c416f08d709a376705a20be8183f;hpb=573cadc1c3fe8377499c3f6c8694255d907604dd;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/weapons/config.qc b/qcsrc/common/weapons/config.qc index 0448f4874..7d1b4e3d2 100644 --- a/qcsrc/common/weapons/config.qc +++ b/qcsrc/common/weapons/config.qc @@ -1,8 +1,6 @@ #if defined(CSQC) #elif defined(MENUQC) #elif defined(SVQC) - #include "../../dpdefs/progsdefs.qh" - #include "../../dpdefs/dpextensions.qh" #include "../util.qh" #include "config.qh" #include "all.qh" @@ -35,7 +33,8 @@ void Dump_Weapon_Settings(void) { wep_config_queue[x] = string_null; } // step 2: build new queue - WEP_ACTION(i, WR_CONFIG); + Weapon w = get_weaponinfo(i); + w.wr_config(w); // step 3: sort queue heapsort(WEP_CONFIG_COUNT, W_Config_Queue_Swap, W_Config_Queue_Compare, world); @@ -51,7 +50,7 @@ void Dump_Weapon_Settings(void) WEP_CONFIG_WRITETOFILE("// }}}\n"); // step 5: debug info - print(sprintf("#%d: %s: %d settings...\n", i, WEP_NAME(i), WEP_CONFIG_COUNT)); + LOG_INFO(sprintf("#%d: %s: %d settings...\n", i, WEP_NAME(i), WEP_CONFIG_COUNT)); totalsettings += WEP_CONFIG_COUNT; } @@ -61,5 +60,5 @@ void Dump_Weapon_Settings(void) { wep_config_queue[x] = string_null; } // extra information - print(sprintf("Totals: %d weapons, %d settings\n", (i - 1), totalsettings)); + LOG_INFO(sprintf("Totals: %d weapons, %d settings\n", (i - 1), totalsettings)); }