From 1ef28203ea272d95881ee98ae7b594998c462ed5 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Sat, 22 Feb 2025 17:17:14 +0100 Subject: [PATCH] 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. --- Content.Client/Guidebook/GuidebookSystem.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.51.2