]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/subs.qc
Fix warpzones
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / subs.qc
index 51ef002736a32201d391cc9831b9a4f84f06389f..3120aa33d90361b1e5f88a75f49f72ae0f16c220 100644 (file)
@@ -14,7 +14,7 @@ Applies some friction to this
 void SUB_Friction (entity this)
 {
        this.SUB_NEXTTHINK = time;
-       if(this.SUB_FLAGS & FL_ONGROUND)
+       if(IS_ONGROUND(this))
                this.SUB_VELOCITY = this.SUB_VELOCITY * (1 - frametime * this.friction);
 }