Fix compile errors for MSVC
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>
Tue, 15 Feb 2005 10:02:19 +0000 (10:02 +0000)
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>
Tue, 15 Feb 2005 10:02:19 +0000 (10:02 +0000)
source/gameengine/Physics/BlOde/OdePhysicsEnvironment.cpp
source/gameengine/Physics/BlOde/OdePhysicsEnvironment.h

index 7851a9f34f7985db006b668e02b8201704cab4c2..1316311b881747e4bbb68d1d0d5b07db39498249 100644 (file)
@@ -55,7 +55,7 @@ ODEPhysicsEnvironment::~ODEPhysicsEnvironment()
        dWorldDestroy (m_OdeWorld);
 }
 
-void ODEPhysicsEnvironment::proceed(double timeStep)
+bool ODEPhysicsEnvironment::proceed(double timeStep)
 {
        // ode collision update
        dSpaceCollide (m_OdeSpace,this,&ODEPhysicsEnvironment::OdeNearCallback);
@@ -67,6 +67,8 @@ void ODEPhysicsEnvironment::proceed(double timeStep)
        
        //clear collision points
        this->ClearOdeContactGroup();
+       
+       return true;
 }
 
 void ODEPhysicsEnvironment::setGravity(float x,float y,float z)
index f7600cc2fe0dcfd6ef1a4f579b693ddf2fb4e8f1..828e3ff3269058a9b5715b01b3e9b1531f71ad69 100644 (file)
@@ -36,7 +36,7 @@ public:
        ODEPhysicsEnvironment();
        virtual         ~ODEPhysicsEnvironment();
 // Perform an integration step of duration 'timeStep'.
-       virtual void            proceed(double  timeStep);
+       virtual bool            proceed(double  timeStep);
        virtual void            setGravity(float x,float y,float z);
        virtual int                     createConstraint(class PHY_IPhysicsController* ctrl,class PHY_IPhysicsController* ctrl2,PHY_ConstraintType type,
                        float pivotX,float pivotY,float pivotZ,