Fixed warnings

This commit is contained in:
Robin Engman 2014-02-08 14:26:18 +01:00
parent 92447a6352
commit fb9e33fc9b
1 changed files with 3 additions and 3 deletions

View File

@ -346,7 +346,7 @@ void API_Impl::Update()
this->worldScene.Sample( Universe(), updateList ); this->worldScene.Sample( Universe(), updateList );
// Change momentum for all rigid bodies // Change momentum for all rigid bodies
for( int i = 0; i < updateList.size(); i++ ) for( unsigned int i = 0; i < updateList.size(); i++ )
{ {
ICustomBody* proto = updateList[i]; ICustomBody* proto = updateList[i];
// Step 1: Apply gravity to rigid body // Step 1: Apply gravity to rigid body
@ -357,7 +357,7 @@ void API_Impl::Update()
Float rSquared = deltaPosGrav.Dot( deltaPosGrav ); Float rSquared = deltaPosGrav.Dot( deltaPosGrav );
if( rSquared != 0.0 ) if( rSquared != 0.0 )
{ {
Float force = 9.82*10; Float force = 9.82f*10.0f;
gravityImpulse += (this->updateFrameLength*force)*deltaPosGrav.GetNormalized(); gravityImpulse += (this->updateFrameLength*force)*deltaPosGrav.GetNormalized();
} }
@ -374,7 +374,7 @@ void API_Impl::Update()
} }
// Go through all rigid bodies and move them according to their momentums // Go through all rigid bodies and move them according to their momentums
for( int i = 0; i < updateList.size(); i++ ) for( unsigned int i = 0; i < updateList.size(); i++ )
{ {
auto proto = updateList[i]; auto proto = updateList[i];