]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - progs.h
progs: Extend USEODE ifdef to cover defines too
[xonotic/darkplaces.git] / progs.h
diff --git a/progs.h b/progs.h
index fd8d109c3ee65fa1ddebba405e2c21e445f66264..79b5fc791c5e7ecbb7c3e3bb40c75640b1984b73 100644 (file)
--- a/progs.h
+++ b/progs.h
@@ -25,6 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #define ENTITYGRIDAREAS 16
 #define MAX_ENTITYCLUSTERS 16
 
+#ifdef USEODE
 #define        GEOMTYPE_NONE      -1
 #define        GEOMTYPE_SOLID      0
 #define        GEOMTYPE_BOX            1
@@ -64,18 +65,15 @@ typedef struct edict_odefunc_s
        vec3_t v2;
        struct edict_odefunc_s *next;
 }edict_odefunc_t;
+#endif
 
 typedef struct edict_engineprivate_s
 {
-       // true if this edict is unused
-       qbool free;
-       // sv.time when the object was freed (to prevent early reuse which could
-       // mess up client interpolation or obscure severe QuakeC bugs)
-       double freetime;
        // mark for the leak detector
        int mark;
        // place in the code where it was allocated (for the leak detector)
        const char *allocation_origin;
+
        // initially false to prevent projectiles from moving on their first frame
        // (even if they were spawned by an synchronous client think)
        qbool move;
@@ -113,6 +111,7 @@ typedef struct edict_engineprivate_s
        frameblend_t frameblend[MAX_FRAMEBLENDS];
        skeleton_t skeleton;
 
+#ifdef USEODE
        // physics parameters
        qbool ode_physics;
        void *ode_body;
@@ -145,6 +144,7 @@ typedef struct edict_engineprivate_s
        vec3_t ode_joint_velocity; // second joint axis
        vec3_t ode_joint_movedir; // parameters
        void *ode_massbuf;
+#endif
 }
 edict_engineprivate_t;