From: Mario Date: Thu, 18 Jan 2018 13:12:30 +0000 (+1000) Subject: Double check g_physics_clientselect_default X-Git-Tag: xonotic-v0.8.5~2383 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c4bfc800d006b30c28997f2a275479843e62379e;p=xonotic%2Fxonotic-data.pk3dir.git Double check g_physics_clientselect_default --- diff --git a/qcsrc/common/physics/player.qc b/qcsrc/common/physics/player.qc index 20c580a85..7d3cab007 100644 --- a/qcsrc/common/physics/player.qc +++ b/qcsrc/common/physics/player.qc @@ -21,7 +21,7 @@ float Physics_ClientOption(entity this, string option, float defaultval) if(cvar_type(s) & CVAR_TYPEFLAG_EXISTS) return cvar(s); } - if(autocvar_g_physics_clientselect && autocvar_g_physics_clientselect_default) + if(autocvar_g_physics_clientselect && autocvar_g_physics_clientselect_default && autocvar_g_physics_clientselect_default != "") { string s = strcat("g_physics_", autocvar_g_physics_clientselect_default, "_", option); if(cvar_type(s) & CVAR_TYPEFLAG_EXISTS)