mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +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
|
|
@ -279,13 +279,10 @@ bool SplashData::preload(bool server, String &errorStr)
|
|||
|
||||
if (!server)
|
||||
{
|
||||
|
||||
if (getSound() != StringTable->EmptyString())
|
||||
if (getSound() != StringTable->EmptyString() && !isSoundValid())
|
||||
{
|
||||
_setSound(getSound());
|
||||
|
||||
if(!getSoundProfile())
|
||||
Con::errorf(ConsoleLogEntry::General, "SplashData::preload: Cant get an sfxProfile for splash.");
|
||||
Con::errorf(ConsoleLogEntry::General, "SplashData::preload: Invalid Sound asset.");
|
||||
return false;
|
||||
}
|
||||
|
||||
S32 i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue