X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=world.h;h=1b60ac6c2b48cbd74db530237db1db418e98ec4d;hp=122b9c708a635d959f66780fd8bf6857ad31c612;hb=4d34e0a632cbc401712f46e10bb9864438b0881f;hpb=9e7cf93753b0ee09dabf325a989f37f611fe7919 diff --git a/world.h b/world.h index 122b9c70..1b60ac6c 100644 --- a/world.h +++ b/world.h @@ -22,6 +22,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef WORLD_H #define WORLD_H +#include "qtypes.h" #include "collision.h" #define MOVE_NORMAL 0 @@ -35,14 +36,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. typedef struct link_s { + llist_t list; int entitynumber; - struct link_s *prev, *next; } link_t; typedef struct world_physics_s { // for ODE physics engine - qboolean ode; // if true then ode is activated + qbool ode; // if true then ode is activated void *ode_world; void *ode_space; void *ode_contactgroup; @@ -50,6 +51,8 @@ typedef struct world_physics_s int ode_iterations; // actual step (server frametime / ode_iterations) vec_t ode_step; + // time we need to simulate, for constantstep + vec_t ode_time; // stats int ode_numobjects; // total objects cound int ode_activeovjects; // active objects count