]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Minor optimization: don't bother checking if bots have cvar_cl_physics set
authorMario <mario@smbclan.net>
Sat, 6 May 2017 10:09:26 +0000 (20:09 +1000)
committerMario <mario@smbclan.net>
Sat, 6 May 2017 10:09:42 +0000 (20:09 +1000)
qcsrc/common/physics/player.qc

index a8a32998e48f8f01cc6c45f7dad82024e92ffe4d..b108aa92bea049d370852621024595d6b086c694 100644 (file)
@@ -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)