Make cargo use explicit audio filter. (#5654)

* make cargo use explicit audio filter

* OwnerUid -> Owner
This commit is contained in:
Leon Friedrich
2021-12-14 10:22:16 +13:00
committed by GitHub
parent 43eb542a60
commit 47d012408b

View File

@@ -113,7 +113,7 @@ namespace Content.Server.Cargo.Components
if (!_cargoConsoleSystem.AddOrder(orders.Database.Id, msg.Requester, msg.Reason, msg.ProductId, if (!_cargoConsoleSystem.AddOrder(orders.Database.Id, msg.Requester, msg.Reason, msg.ProductId,
msg.Amount, _bankAccount.Id)) msg.Amount, _bankAccount.Id))
{ {
SoundSystem.Play(Filter.Local(), _errorSound.GetSound(), Owner, AudioParams.Default); SoundSystem.Play(Filter.Pvs(Owner), _errorSound.GetSound(), Owner, AudioParams.Default);
} }
break; break;
} }
@@ -146,7 +146,7 @@ namespace Content.Server.Cargo.Components
|| !_cargoConsoleSystem.ChangeBalance(_bankAccount.Id, (-product.PointCost) * order.Amount)) || !_cargoConsoleSystem.ChangeBalance(_bankAccount.Id, (-product.PointCost) * order.Amount))
) )
{ {
SoundSystem.Play(Filter.Local(), _errorSound.GetSound(), Owner, AudioParams.Default); SoundSystem.Play(Filter.Pvs(Owner), _errorSound.GetSound(), Owner, AudioParams.Default);
break; break;
} }