From: Pieter-Jan Briers Date: Sat, 22 Feb 2025 16:17:14 +0000 (+0100) Subject: Comment out broken guidebook test speech code (#35398) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=1ef28203ea272d95881ee98ae7b594998c462ed5;p=space-station-14.git Comment out broken guidebook test speech code (#35398) This code blatantly doesn't work and causes compile failures with https://github.com/space-wizards/RobustToolbox/pull/5540. It's only used for testing purposes, so we're just removing it. Basically taken from https://github.com/space-wizards/space-station-14/pull/33610 in another PR, so I can merge this first separately. --- diff --git a/Content.Client/Guidebook/GuidebookSystem.cs b/Content.Client/Guidebook/GuidebookSystem.cs index 675a025d7a..25c8ead0ec 100644 --- a/Content.Client/Guidebook/GuidebookSystem.cs +++ b/Content.Client/Guidebook/GuidebookSystem.cs @@ -150,7 +150,9 @@ public sealed class GuidebookSystem : EntitySystem if (!TryComp(uid, out var speech) || speech.SpeechSounds is null) return; - _audioSystem.PlayGlobal(speech.SpeechSounds, Filter.Local(), false, speech.AudioParams); + // This code is broken because SpeechSounds isn't a file name or sound specifier directly. + // Commenting out to avoid compile failure with https://github.com/space-wizards/RobustToolbox/pull/5540 + // _audioSystem.PlayGlobal(speech.SpeechSounds, Filter.Local(), false, speech.AudioParams); } public void FakeClientActivateInWorld(EntityUid activated)