mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
sound safeties and future notes
This commit is contained in:
parent
39b9b47caf
commit
c4ae6258cc
15 changed files with 39 additions and 48 deletions
|
|
@ -422,10 +422,9 @@ bool ShapeBaseImageData::preload(bool server, String &errorStr)
|
|||
if (!Sim::findObject(SimObjectId((uintptr_t)state[i].emitter), state[i].emitter))
|
||||
Con::errorf(ConsoleLogEntry::General, "Error, unable to load emitter for image datablock");
|
||||
|
||||
if (getstateSound(i) != StringTable->EmptyString() && !isstateSoundValid(i))
|
||||
if (!isstateSoundValid(i))
|
||||
{
|
||||
Con::errorf(ConsoleLogEntry::General, "ShapeBaseImageData::preload: Invalid stateSound asset %s on state %d", getstateSound(i), i);
|
||||
return false;
|
||||
//return false; -TODO: trigger asset download
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue