Preload all soundAsset

-Fixed: Preloads need to preload all soundAssets not just the ones it was preloading before.
This commit is contained in:
marauder2k7 2021-09-20 17:05:11 +01:00
parent 30b57c0f95
commit e9d0f68b55
5 changed files with 37 additions and 14 deletions

View file

@ -300,10 +300,21 @@ bool RigidShapeData::preload(bool server, String &errorStr)
// Resolve objects transmitted from server
if (!server) {
for (S32 i = 0; i < Body::MaxSounds; i++)
{
if (mBodySounds[i])
{
_setBodySounds(getBodySounds(i), i);
}
}
for (S32 j = 0; j < Sounds::MaxSounds; j++)
{
if (mWaterSounds[j])
{
_setWaterSounds(getWaterSounds(j), j);
}
}
}
if( !dustEmitter && dustID != 0 )