mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
Preload all soundAsset
-Fixed: Preloads need to preload all soundAssets not just the ones it was preloading before.
This commit is contained in:
parent
30b57c0f95
commit
e9d0f68b55
5 changed files with 37 additions and 14 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue