]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Comment out broken guidebook test speech code (#35398)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Sat, 22 Feb 2025 16:17:14 +0000 (17:17 +0100)
committerGitHub <noreply@github.com>
Sat, 22 Feb 2025 16:17:14 +0000 (17:17 +0100)
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

index 675a025d7a860fd4d94bca1ff7ab892b3e7b335a..25c8ead0ec4d659fa1c84ed2f336836067ae8a40 100644 (file)
@@ -150,7 +150,9 @@ public sealed class GuidebookSystem : EntitySystem
         if (!TryComp<SpeechComponent>(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)