update ivp submodule

This commit is contained in:
nillerusr
2022-04-16 10:07:38 +03:00
parent 9e6ce6501c
commit bc6873014e
4 changed files with 9 additions and 15 deletions
+2 -12
View File
@@ -175,12 +175,7 @@ void CVPhysicsParse::ParseSolid( solid_t *pSolid, IVPhysicsKeyHandler *unknownKe
else if ( !Q_stricmp( key, "inertia" ) )
{
float inertia = atof(value);
if( inertia > 1e14f )
pSolid->params.inertia = 1e14f;
else if( inertia <= 0 )
pSolid->params.inertia = 1.f;
else
pSolid->params.inertia = inertia;
pSolid->params.inertia = (inertia > 1e14f) ? 1e14f : inertia;
}
else if ( !Q_stricmp( key, "damping" ) )
{
@@ -475,12 +470,7 @@ void CVPhysicsParse::ParseVehicleWheel( vehicle_wheelparams_t &wheel )
else if ( !Q_stricmp( key, "inertia" ) )
{
float inertia = atof(value);
if( inertia > 1e14f )
wheel.inertia = 1e14f;
else if( inertia <= 0 )
wheel.inertia = 1.f;
else
wheel.inertia = inertia;
wheel.inertia = (inertia > 1e14f) ? 1e14f : inertia;
}
else if ( !Q_stricmp( key, "damping" ) )
{