random sound selection for triggers

This commit is contained in:
2026-01-06 16:26:57 -05:00
parent b41b6df19e
commit 5124f77817
12 changed files with 104 additions and 59 deletions
+2 -2
View File
@@ -236,7 +236,6 @@ namespace anm2ed::anm2
for (auto& [sourceID, sourceEvent] : source.content.events)
{
auto event = sourceEvent;
event.soundID = remap_id(soundRemap, event.soundID);
int destinationID = find_by_name(content.events, event.name);
if (destinationID != -1)
@@ -253,7 +252,8 @@ namespace anm2ed::anm2
{
for (auto& frame : item.frames)
{
frame.soundID = remap_id(soundRemap, frame.soundID);
for (auto& soundID : frame.soundIDs)
soundID = remap_id(soundRemap, soundID);
frame.eventID = remap_id(eventRemap, frame.eventID);
}
};