From: Samual Lenks Date: Mon, 1 Jul 2013 09:27:17 +0000 (-0400) Subject: Begin using cvar("") for WR_CONFIG and WR_INIT to avoid references X-Git-Tag: xonotic-v0.8.0~152^2~344 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=453f646222c5e470091d306f40202a4cd3c1f637;p=xonotic%2Fxonotic-data.pk3dir.git Begin using cvar("") for WR_CONFIG and WR_INIT to avoid references --- diff --git a/qcsrc/common/weapons/config.qh b/qcsrc/common/weapons/config.qh index 316da5fa6..4fa5080a4 100644 --- a/qcsrc/common/weapons/config.qh +++ b/qcsrc/common/weapons/config.qh @@ -20,11 +20,9 @@ string wep_config_queue[MAX_WEP_CONFIG]; #define WEP_CONFIG_WRITE_CVARS(weapon,mode,name) \ #if mode == MO_PRI \ - { WEP_CONFIG_QUEUE(sprintf( \ - "set g_balance_%s_primary_%s %g\n", \ - #weapon, \ - #name, \ - autocvar_g_balance_##weapon##_primary_##name)) } \ + { WEP_CONFIG_QUEUE( \ + sprintf("set g_balance_%s_primary_%s %g\n", #weapon, #name, \ + cvar(sprintf("g_balance_%s_primary_%s", #weapon, #name)))) } \ #endif \ #if mode == MO_SEC \ { WEP_CONFIG_QUEUE(sprintf("set g_balance_%s_secondary_%s %g\n", \