#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"
return strcmp(wep_config_queue[root], wep_config_queue[child]);
}
-void Dump_Weapon_Settings(void)
+void Dump_Weapon_Settings()
{
int i, x, totalsettings = 0;
for(i = WEP_FIRST; i <= WEP_LAST; ++i)
{ 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);