mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 21:47:42 +00:00
Final CCollisionInfoList imps
This commit is contained in:
@@ -689,8 +689,11 @@ CEntity* ScriptLoader::LoadSound(CStateManager& mgr, CInputStream& in, int propC
|
||||
bool allowDuplicates = in.readBool();
|
||||
s32 pitch = in.readInt32Big();
|
||||
|
||||
if (soundId < 0)
|
||||
if (soundId < 0) {
|
||||
Log.report(logvisor::Warning, fmt("Invalid sound ID specified in Sound {} ({}), dropping..."), head.x0_name,
|
||||
info.GetEditorId());
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return new CScriptSound(mgr.AllocateUniqueId(), head.x0_name, info, head.x10_transform, u16(soundId), active, maxDist,
|
||||
distComp, startDelay, minVol, vol, 0, prio, pan, 0, loop, nonEmitter, autoStart,
|
||||
|
||||
Reference in New Issue
Block a user