mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +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
|
|
@ -141,9 +141,10 @@ bool FlyingVehicleData::preload(bool server, String &errorStr)
|
|||
if (!server) {
|
||||
for (S32 i = 0; i < MaxSounds; i++)
|
||||
{
|
||||
if (mFlyingSounds[i])
|
||||
if (getFlyingSounds(i) != StringTable->EmptyString() && !isFlyingSoundsValid(i))
|
||||
{
|
||||
_setFlyingSounds(getFlyingSounds(i), i);
|
||||
Con::errorf(ConsoleLogEntry::General, "FlyingVehicleData::preload: Invalid FlyingSounds asset.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
for (S32 j = 0; j < MaxJetEmitters; j++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue