git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9382
d7cf8633-e32d-0410-b094-
e92efae38249
void World_Physics_RemoveFromEntity(world_t *world, prvm_edict_t *ed)
{
// entity is not physics controlled, free any physics data
- prvm_edict_t *ed2;
ed->priv.server->ode_physics = false;
#ifdef USEODE
if (ed->priv.server->ode_geom)
{
dJointID j;
dBodyID b1, b2;
+ prvm_edict_t *ed2;
while(dBodyGetNumJoints((dBodyID)ed->priv.server->ode_body))
{
j = dBodyGetJoint((dBodyID)ed->priv.server->ode_body, 0);