Skip to content

Commit

Permalink
Add audio stream name to entity name (#5121)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowCommander authored May 10, 2024
1 parent 025d90d commit d2a2afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Robust.Client/Audio/AudioSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ public override (EntityUid Entity, AudioComponent Component)? PlayStatic(string?
private (EntityUid Entity, AudioComponent Component) CreateAndStartPlayingStream(AudioParams? audioParams, AudioStream stream)
{
var audioP = audioParams ?? AudioParams.Default;
var entity = EntityManager.CreateEntityUninitialized("Audio", MapCoordinates.Nullspace);
var entity = EntityManager.CreateEntityUninitialized($"Audio {stream.Name}", MapCoordinates.Nullspace);
var comp = SetupAudio(entity, null, audioP, stream.Length);
LoadStream((entity, comp), stream);
EntityManager.InitializeAndStartEntity(entity);
Expand Down

0 comments on commit d2a2afe

Please sign in to comment.