]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Try fix ode_body cast.
authorvortex <vortex@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 31 Dec 2011 17:11:35 +0000 (17:11 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 9 Jan 2012 11:16:12 +0000 (12:16 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11629 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=579f5e5afabbb24f524eb9c8d8f6bded47393e71

world.c

diff --git a/world.c b/world.c
index b23fe2c924c4de7c782c7b7fe491201294d165ce..39d851402c0d86d77771f79638b082774bc7955b 100644 (file)
--- a/world.c
+++ b/world.c
@@ -1864,20 +1864,20 @@ static void World_Physics_Frame_ForceFromEntity(world_t *world, prvm_edict_t *ed
                return;
        VectorCopy(PRVM_gameedictvector(ed, movedir), movedir);
        VectorCopy(PRVM_gameedictvector(ed, origin), origin);
-       dBodyEnable(prog->edicts[enemy].priv.server->ode_body);
+       dBodyEnable((dBodyID)prog->edicts[enemy].priv.server->ode_body);
        switch(forcetype)
        {
                case FORCETYPE_FORCE:
                        if (movedir[0] || movedir[1] || movedir[2])
-                               dBodyAddForce(prog->edicts[enemy].priv.server->ode_body, movedir[0], movedir[1], movedir[2]);
+                               dBodyAddForce((dBodyID)prog->edicts[enemy].priv.server->ode_body, movedir[0], movedir[1], movedir[2]);
                        break;
                case FORCETYPE_FORCEATPOS:
                        if (movedir[0] || movedir[1] || movedir[2])
-                               dBodyAddForceAtPos(prog->edicts[enemy].priv.server->ode_body, movedir[0], movedir[1], movedir[2], origin[0], origin[1], origin[2]);
+                               dBodyAddForceAtPos((dBodyID)prog->edicts[enemy].priv.server->ode_body, movedir[0], movedir[1], movedir[2], origin[0], origin[1], origin[2]);
                        break;
                case FORCETYPE_TORQUE:
                        if (movedir[0] || movedir[1] || movedir[2])
-                               dBodyAddTorque(prog->edicts[enemy].priv.server->ode_body, movedir[0], movedir[1], movedir[2]);
+                               dBodyAddTorque((dBodyID)prog->edicts[enemy].priv.server->ode_body, movedir[0], movedir[1], movedir[2]);
                        break;
                case FORCETYPE_NONE:
                default: