fix some warnings

This commit is contained in:
Erwin Coumans
2015-08-26 15:26:53 -07:00
parent 77f78358d2
commit 2e7949bb3e
6 changed files with 12 additions and 13 deletions

View File

@@ -975,6 +975,10 @@ void PhysicsServerSharedMemory::processClientCommands()
case CMD_SEND_PHYSICS_SIMULATION_PARAMETERS:
{
if (clientCmd.m_updateFlags&SIM_PARAM_UPDATE_DELTA_TIME)
{
m_data->m_physicsDeltaTime = clientCmd.m_physSimParamArgs.m_deltaTime;
}
if (clientCmd.m_updateFlags&SIM_PARAM_UPDATE_GRAVITY)
{
btVector3 grav(clientCmd.m_physSimParamArgs.m_gravityAcceleration[0],
@@ -1010,7 +1014,6 @@ void PhysicsServerSharedMemory::processClientCommands()
}
case CMD_RESET_SIMULATION:
{
//clean up all data