]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't set wasFlying on the client, waste of CPU
authorMario <mario@smbclan.net>
Thu, 4 Feb 2016 07:40:51 +0000 (17:40 +1000)
committerMario <mario@smbclan.net>
Thu, 4 Feb 2016 07:40:51 +0000 (17:40 +1000)
qcsrc/common/physics/player.qc

index 96d1a9e7a6b4addb3a0847f0e3714b27ac173cf0..4356ba2864e0a249995f15283b3625868f2915b5 100644 (file)
@@ -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);