Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/ogreode/fix_and_remove_demos.patch @ 62

Last change on this file since 62 was 22, checked in by nicolasc, 16 years ago

added patch to revert changes

File size: 4.5 KB
  • Makefile.am

    diff -upNr ogreode/Makefile.am ogreode-patched/Makefile.am
    old new  
    1 SUBDIRS = include src prefab loader demos
     1SUBDIRS = include src prefab loader
    22
    33pkgconfigdir = $(libdir)/pkgconfig
    44pkgconfig_DATA = OgreOde_Core.pc OgreOde_Prefab.pc OgreOde_Loader.pc
  • src/OgreOdeBody.cpp

    diff -upNr ogreode/src/OgreOdeBody.cpp ogreode-patched/src/OgreOdeBody.cpp
    old new int Body::getJointCount() 
    520520//-----------------------------------------------------------------------
    521521Joint* Body::getJoint(int index)
    522522{
    523         return (Joint*)_world->getJointList().findItem((unsigned int)dBodyGetJoint(_body,index));
     523        return (Joint*)_world->getJointList().findItem((long unsigned int)dBodyGetJoint(_body,index));
    524524}
    525525//-----------------------------------------------------------------------
    526526size_t Body::getGeometryCount()
    Body::~Body() 
    717717        destroyDebugNode();
    718718        delete _mass;
    719719
    720         _world->getBodyList().unregisterItem((unsigned int)_body);
     720        _world->getBodyList().unregisterItem((long unsigned int)_body);
    721721        dBodyDestroy(_body);
    722722}
    723723
    bool Body::collidePlaneBounds(void* data 
    852852
    853853    }
    854854    return collided;
    855 }
    856  No newline at end of file
     855}
  • src/OgreOdeGeometry.cpp

    diff -upNr ogreode/src/OgreOdeGeometry.cpp ogreode-patched/src/OgreOdeGeometry.cpp
    old new void Geometry::setDebugContact(const boo 
    211211    {
    212212        _debug_contacts = new DebugContact*[_max_contacts];
    213213        for (unsigned int i = 0; i < _max_contacts; i++)
    214             _debug_contacts[i] = new DebugContact(Ogre::StringConverter::toString((int)_geom) +
     214            _debug_contacts[i] = new DebugContact(Ogre::StringConverter::toString(_geom) +
    215215                                                    "_Contact_" +
    216216                                                    Ogre::StringConverter::toString(i),
    217217                                                    _world);
    const AxisAlignedBox& Geometry::getAxisA 
    273273//------------------------------------------------------------------------------------------------
    274274Space* Geometry::getSpace()
    275275{
    276         return (Space*)_world->getSpaceList().findItem((unsigned int)dGeomGetSpace(_geom));
     276        return (Space*)_world->getSpaceList().findItem((long unsigned int)dGeomGetSpace(_geom));
    277277}
    278278
    279279
    void Geometry::setMaxContacts(unsigned i 
    425425        }
    426426        _debug_contacts = new DebugContact*[max_contacts];
    427427        for (unsigned int i = 0; i < max_contacts; i++)
    428             _debug_contacts[i] = new DebugContact(Ogre::StringConverter::toString((int)_geom) +  + "_Contact_" + Ogre::StringConverter::toString(i),
     428            _debug_contacts[i] = new DebugContact(Ogre::StringConverter::toString(_geom) +  + "_Contact_" + Ogre::StringConverter::toString(i),
    429429            _world);
    430430    }
    431431    _max_contacts = max_contacts;
  • src/OgreOdeJoint.cpp

    diff -upNr ogreode/src/OgreOdeJoint.cpp ogreode-patched/src/OgreOdeJoint.cpp
    old new dJointGroupID JointGroup::getJointGroupI 
    2525
    2626unsigned long JointGroup::getID()
    2727{
    28         return (unsigned long)_joint_group;
     28        return (long unsigned long)_joint_group;
    2929}
    3030
    3131void JointGroup::empty()
    void JointGroup::empty() 
    3535
    3636JointGroup::~JointGroup()
    3737{
    38         _world->getJointGroupList().unregisterItem((unsigned int)_joint_group);
     38        _world->getJointGroupList().unregisterItem((long unsigned int)_joint_group);
    3939        dJointGroupDestroy(_joint_group);
    4040}
    4141
  • src/OgreOdeSpace.cpp

    diff -upNr ogreode/src/OgreOdeSpace.cpp ogreode-patched/src/OgreOdeSpace.cpp
    old new int Space::getGeometryCount() 
    6262//------------------------------------------------------------------------------------------------
    6363Geometry* Space::getGeometry(int index)
    6464{
    65         return (Geometry*) _world->getGeometryList().findItem((unsigned int)dSpaceGetGeom(_space,index));
     65        return (Geometry*) _world->getGeometryList().findItem((long unsigned int)dSpaceGetGeom(_space,index));
    6666}
    6767//------------------------------------------------------------------------------------------------
    6868void Space::registerSpace()
Note: See TracBrowser for help on using the repository browser.