Fixed warnings in Bullet/src core library

Thanks Martijn Reuvers from Two Tribes B.V. (www.twotribes.com) for the patch

To make this work more visible, suppress warnings in external libraries in Extras (COLLADA_DOM, libxml and glui contain many warnings)
Added PreprocessorDefinitions: _CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE to vcproj files
This commit is contained in:
erwin.coumans
2008-05-10 18:00:21 +00:00
parent 739d09a7af
commit bd97c5e569
285 changed files with 11554 additions and 11205 deletions

View File

@@ -350,7 +350,11 @@ drawDinosaur(void)
//glTranslatef(0.0, jump, 0.0);
// glTranslatef(dinoWorldPos[0],dinoWorldPos[1],dinoWorldPos[2]);
#ifdef BT_USE_DOUBLE_PRECISION
glMultMatrixd(matrix);
#else
glMultMatrixf(matrix);
#endif
// glutSolidCube(15);
glTranslatef(-8.5, -8.5, 0);

View File

@@ -153,7 +153,7 @@ void CharacterController::playerStep (btScalar dt,
if (!forward && !backward && onGround())
{
/* Dampen when on the ground and not being moved by the player */
linearVelocity *= 0.2;
linearVelocity *= btScalar(0.2);
m_rigidBody->setLinearVelocity (linearVelocity);
} else {
if (speed < m_maxLinearVelocity)

View File

@@ -307,11 +307,8 @@ const float TRIANGLE_SIZE=20.f;
//to be implemented by the demo
void CharacterDemo::renderme()
{
updateCamera();
btScalar m[16];
int i;
DemoApplication::renderme();
}