From: Mario Date: Thu, 4 Feb 2016 07:40:51 +0000 (+1000) Subject: Don't set wasFlying on the client, waste of CPU X-Git-Tag: xonotic-v0.8.2~1203 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ae6e4df06f1d84cc99200844a13ab6ecbffaee1c;p=xonotic%2Fxonotic-data.pk3dir.git Don't set wasFlying on the client, waste of CPU --- diff --git a/qcsrc/common/physics/player.qc b/qcsrc/common/physics/player.qc index 96d1a9e7a..4356ba286 100644 --- a/qcsrc/common/physics/player.qc +++ b/qcsrc/common/physics/player.qc @@ -1472,8 +1472,10 @@ void PM_Main(entity this) PM_Footsteps(this); } +#ifdef SVQC if(IsFlying(this)) this.wasFlying = 1; +#endif if (IS_PLAYER(this)) CheckPlayerJump(this);