Refactor all references to AudioSystem functions now that the old ones are obsolete. (#1081)

Co-authored-by: FL-OZ <anotherscuffed@gmail.com>
This commit is contained in:
Memory
2020-06-07 08:55:15 -05:00
committed by GitHub
parent b8338bc64c
commit 21c41f28ed
40 changed files with 72 additions and 72 deletions

View File

@@ -144,7 +144,7 @@ namespace Content.Server.GameObjects.Components.Movement
if (_cooldownSound != null)
{
var soundPlayer = EntitySystem.Get<AudioSystem>();
soundPlayer.Play(_cooldownSound, Owner);
soundPlayer.PlayFromEntity(_cooldownSound, Owner);
}
}
@@ -249,12 +249,12 @@ namespace Content.Server.GameObjects.Components.Movement
else
{
// Departure
soundPlayer.Play(_departureSound, user.Transform.GridPosition);
soundPlayer.PlayAtCoords(_departureSound, user.Transform.GridPosition);
// Arrival
user.Transform.DetachParent();
user.Transform.WorldPosition = vector;
soundPlayer.Play(_arrivalSound, user.Transform.GridPosition);
soundPlayer.PlayAtCoords(_arrivalSound, user.Transform.GridPosition);
}
}