]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - csprogs.c
ode: Add more #ifdefs to ensure ODE is fully disabled without -DUSEODE
[xonotic/darkplaces.git] / csprogs.c
index f74a206b09e1df120e153d436d3049c8668cae82..9800fe0a907fecff8507ee1ed21e4ad84d502f2d 100644 (file)
--- a/csprogs.c
+++ b/csprogs.c
@@ -906,8 +906,10 @@ static void CLVM_free_edict(prvm_prog_t *prog, prvm_edict_t *ed)
        World_UnlinkEdict(ed);
        memset(ed->fields.fp, 0, prog->entityfields * sizeof(prvm_vec_t));
        VM_RemoveEdictSkeleton(prog, ed);
+#ifdef USEODE
        World_Physics_RemoveFromEntity(&cl.world, ed);
        World_Physics_RemoveJointFromEntity(&cl.world, ed);
+#endif
 }
 
 static void CLVM_count_edicts(prvm_prog_t *prog)