Skip to content

Commit d843dec

Browse files
committed
Add flag on a music playing
1 parent 7a1d7d2 commit d843dec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Murder/Services/SoundServices.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ public static async ValueTask Play(
8282
return;
8383
}
8484

85+
if (layer.HasFlag(SoundLayer.Music))
86+
{
87+
properties |= SoundProperties.Persist;
88+
}
89+
8590
await Game.Sound.PlayEvent(id, new PlayEventInfo { Layer = layer, Properties = properties, Attributes = attributes, EntityId = entityId, Parameter = parameter });
8691
}
8792

0 commit comments

Comments
 (0)