Skip to content
This repository has been archived by the owner on Dec 30, 2024. It is now read-only.

Commit

Permalink
fix power grid check playing default and new sound
Browse files Browse the repository at this point in the history
  • Loading branch information
DEATHB4DEFEAT committed Apr 9, 2023
1 parent 0a5eb04 commit deaeb82
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Content.Server/StationEvents/Events/PowerGridCheck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ public override void Ended()
}
}

// Can't use the default EndAudio
_announceCancelToken?.Cancel();
_announceCancelToken = new CancellationTokenSource();
Timer.Spawn(3000, () =>
{
_audioSystem.PlayGlobal("/Audio/Announcements/power_on.ogg", Filter.Broadcast(), true, AudioParams.Default.WithVolume(-4f));
}, _announceCancelToken.Token);
// // Can't use the default EndAudio
// _announceCancelToken?.Cancel();
// _announceCancelToken = new CancellationTokenSource();
// Timer.Spawn(3000, () =>
// {
// _audioSystem.PlayGlobal("/Audio/Announcements/power_on.ogg", Filter.Broadcast(), true, AudioParams.Default.WithVolume(-4f));
// }, _announceCancelToken.Token);
_unpowered.Clear();

base.Ended();
Expand Down

0 comments on commit deaeb82

Please sign in to comment.