]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_main.c
ode: Add more #ifdefs to ensure ODE is fully disabled without -DUSEODE
[xonotic/darkplaces.git] / sv_main.c
index d103ffe65c1fcba759f7a02d5f76053e2fd863ce..956b22acad367463cb547de78645fcbe8f1bfb73 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -2189,9 +2189,10 @@ static void SVVM_free_edict(prvm_prog_t *prog, prvm_edict_t *ed)
        PRVM_serveredictfloat(ed, solid) = 0;
 
        VM_RemoveEdictSkeleton(prog, ed);
+#ifdef USEODE
        World_Physics_RemoveFromEntity(&sv.world, ed);
        World_Physics_RemoveJointFromEntity(&sv.world, ed);
-
+#endif
        // make sure csqc networking is aware of the removed entity
        e = PRVM_NUM_FOR_EDICT(ed);
        sv.csqcentityversion[e] = 0;