rigidshape and derivatives cleanups

dragforce for rigidshapes and children defaulted to a value it's own debuggers won't complain about out of the gate
removed duplicate invalidation for flying vehicle sounds causing network instability
removed redundant hovervehicle vars
This commit is contained in:
AzaezelX 2023-09-27 13:43:24 -05:00 committed by Brian Roberts
parent 5615cc33d8
commit 0f55389712
4 changed files with 3 additions and 9 deletions

View file

@ -276,7 +276,7 @@ RigidShapeData::RigidShapeData()
for (S32 i = 0; i < Sounds::MaxSounds; i++)
INIT_SOUNDASSET_ARRAY(WaterSounds, i);
dragForce = 0;
dragForce = 0.01f;
vertFactor = 0.25;
dustTrailEmitter = NULL;
@ -354,7 +354,7 @@ bool RigidShapeData::preload(bool server, String &errorStr)
}
}
if (dragForce <= 0.01f)
if (dragForce < 0.01f)
{
Con::warnf("RigidShapeData::preload: dragForce must be at least 0.01");
dragForce = 0.01f;