mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-26 10:03:48 +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
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue