From: Mario Date: Sat, 6 May 2017 10:09:26 +0000 (+1000) Subject: Minor optimization: don't bother checking if bots have cvar_cl_physics set X-Git-Tag: xonotic-v0.8.5~2805 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7207c2d95a89337265569914bb2e4a4574391950;p=xonotic%2Fxonotic-data.pk3dir.git Minor optimization: don't bother checking if bots have cvar_cl_physics set --- diff --git a/qcsrc/common/physics/player.qc b/qcsrc/common/physics/player.qc index a8a32998e..b108aa92b 100644 --- a/qcsrc/common/physics/player.qc +++ b/qcsrc/common/physics/player.qc @@ -15,7 +15,7 @@ bool Physics_Valid(string thecvar) float Physics_ClientOption(entity this, string option, float defaultval) { - if(Physics_Valid(this.cvar_cl_physics)) + if(IS_REAL_CLIENT(this) && Physics_Valid(this.cvar_cl_physics)) { string s = sprintf("g_physics_%s_%s", this.cvar_cl_physics, option); if(cvar_type(s) & CVAR_TYPEFLAG_EXISTS)