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

@ -218,10 +218,20 @@ bool VehicleData::preload(bool server, String &errorStr)
// Resolve objects transmitted from server
if (!server) {
for (S32 i = 0; i < Body::MaxSounds; i++)
{
if (mVehicleBodySounds[i])
{
_setVehicleBodySounds(getVehicleBodySounds(i), i);
}
}
for (S32 j = 0; j < Sounds::MaxSounds; j++)
{
if (mVehicleWaterSounds[j])
{
_setVehicleWaterSounds(getVehicleWaterSounds(j), j);
}
}
}
if( !dustEmitter && dustID != 0 )