mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-01 03:23:52 +00:00
standardize soundasset preloading for datablocks
This commit is contained in:
parent
6c8dfdbe4c
commit
15f7f04bee
13 changed files with 46 additions and 58 deletions
|
|
@ -517,11 +517,10 @@ bool afxMagicMissileData::preload(bool server, String &errorStr)
|
|||
Con::errorf(ConsoleLogEntry::General, "ProjectileData::preload: Invalid packet, bad datablockId(decal): %d", decalId);
|
||||
*/
|
||||
|
||||
_setProjectileSound(getProjectileSound());
|
||||
if (getProjectileSound() != StringTable->EmptyString())
|
||||
if (getProjectileSound() != StringTable->EmptyString() && !isProjectileSoundValid())
|
||||
{
|
||||
if (!getProjectileSoundProfile())
|
||||
Con::errorf(ConsoleLogEntry::General, "afxMagicMissileData::preload: Cant get an sfxProfile for afxMagicMissileData.");
|
||||
Con::errorf(ConsoleLogEntry::General, "afxMagicMissileData::preload: Invalid ProjectileSound asset.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!lightDesc && lightDescId != 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue