]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make IsFlying less accurate but a lot quicker
authorMario <mario@smbclan.net>
Wed, 23 Dec 2015 22:36:40 +0000 (08:36 +1000)
committerMario <mario@smbclan.net>
Wed, 23 Dec 2015 22:36:40 +0000 (08:36 +1000)
qcsrc/common/physics/player.qc

index 68cae73957cfd3d0cda08dae451aff20da287df6..1fc9ccdf3cdbbc16cc0b92f074de9ead94600bc5 100644 (file)
@@ -1277,9 +1277,9 @@ bool IsFlying(entity this)
                return false;
        if(this.waterlevel >= WATERLEVEL_SWIMMING)
                return false;
-       traceline(this.origin, this.origin - '0 0 48', MOVE_NORMAL, this);
-       if(trace_fraction < 1)
-               return false;
+       //traceline(this.origin, this.origin - '0 0 48', MOVE_NORMAL, this);
+       //if(trace_fraction < 1)
+               //return false;
        return true;
 }