]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/physics/movetypes/movetypes.qc
Add a global to enable engine physics for testing purposes
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / physics / movetypes / movetypes.qc
index a2feb35dd8f98894f4cdc9a5ab4c01b694e59f56..519a526dbc71f5d85c33d3aa061f4489bdff8a26 100644 (file)
@@ -4,7 +4,7 @@
 void set_movetype(entity this, int mt)
 {
        this.move_movetype = mt;
-       this.move_qcphysics = (mt != MOVETYPE_PHYSICS);
+       this.move_qcphysics = (mt != MOVETYPE_PHYSICS && !use_engine_physics);
        if(!IL_CONTAINS(g_moveables, this))
                IL_PUSH(g_moveables, this); // add it to the moveable entities list (even if it doesn't move!) logic: if an object never sets its movetype, we assume it never does anything notable
        this.movetype = (this.move_qcphysics) ? MOVETYPE_QCENTITY : mt;