sound safeties and future notes

This commit is contained in:
AzaezelX 2023-02-26 17:26:43 -06:00
parent 39b9b47caf
commit c4ae6258cc
15 changed files with 39 additions and 48 deletions

View file

@ -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
}
}
}