mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-26 18:13:47 +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
|
|
@ -318,19 +318,17 @@ bool RigidShapeData::preload(bool server, String &errorStr)
|
|||
if (!server) {
|
||||
for (S32 i = 0; i < Body::MaxSounds; i++)
|
||||
{
|
||||
if (getBodySounds(i) != StringTable->EmptyString() && !isBodySoundsValid(i))
|
||||
if (!isBodySoundsValid(i))
|
||||
{
|
||||
Con::errorf(ConsoleLogEntry::General, "RigidShapeData::preload: Invalid BodySound asset.");
|
||||
return false;
|
||||
//return false; -TODO: trigger asset download
|
||||
}
|
||||
}
|
||||
|
||||
for (S32 j = 0; j < Sounds::MaxSounds; j++)
|
||||
{
|
||||
if (getWaterSounds(j) != StringTable->EmptyString() && !isWaterSoundsValid(j))
|
||||
if (!isWaterSoundsValid(j))
|
||||
{
|
||||
Con::errorf(ConsoleLogEntry::General, "RigidShapeData::preload: Invalid WaterSound asset.");
|
||||
return false;
|
||||
//return false; -TODO: trigger asset download
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue