Skip to content

Commit

Permalink
шишкод (#1046)
Browse files Browse the repository at this point in the history
🆑 Inconnu
- fix: Еще один фикс очереди
  • Loading branch information
Inconnu1337 authored Jan 31, 2025
1 parent 03061d0 commit b3c13c7
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Content.Client/Corvax/JoinQueue/QueueState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
using Robust.Client.GameObjects;
using Robust.Client.State;
using Robust.Client.UserInterface;
using Robust.Shared.Audio;
using Robust.Client.Audio;
using Robust.Shared.Audio.Systems;
using Robust.Shared.Player;

Expand All @@ -14,9 +12,9 @@ public sealed class QueueState : State
{
[Dependency] private readonly IUserInterfaceManager _userInterfaceManager = default!;
[Dependency] private readonly IClientConsoleHost _consoleHost = default!;
[Dependency] private readonly AudioSystem _audio = default!;
//[Dependency] private readonly SharedAudioSystem _audio = default!; // ADT TWEAK

private const string JoinSoundPath = "/Audio/Effects/voteding.ogg";
//private const string JoinSoundPath = "/Audio/Effects/voteding.ogg"; // ADT TWEAK

private QueueGui? _gui;

Expand All @@ -33,13 +31,13 @@ protected override void Shutdown()
_gui!.QuitPressed -= OnQuitPressed;
_gui.Dispose();

Ding();
//Ding(); // ADT TWEAK
}

private void Ding()
{
_audio.PlayGlobal(JoinSoundPath, Filter.Local(), false);
}
//private void Ding() // ADT TWEAK, Не понятно как фиксить ошибку с этой хуйней, потому проще вырезать по сути ненужную функцию
//{
// _audio.PlayGlobal(JoinSoundPath, Filter.Local(), false);
//}

public void OnQueueUpdate(MsgQueueUpdate msg)
{
Expand Down

0 comments on commit b3c13c7

Please sign in to comment.