]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Oops. Unbreak - stopsoundto is no longer public.
authorRudolf Polzer <divverent@xonotic.org>
Sat, 21 Feb 2015 14:09:14 +0000 (15:09 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 21 Feb 2015 14:09:14 +0000 (15:09 +0100)
qcsrc/server/func_breakable.qc

index 3acf9157bc36a1924992611aa76509d78cef9c3c..3b7065d2a30aa698b82d15614c384247083b5791 100644 (file)
@@ -121,13 +121,7 @@ void func_breakable_behave_destroyed()
        self.state = 1;
        func_breakable_colormod();
        if (self.noise1)
-       {
-               stopsoundto (MSG_BROADCAST, self, CH_TRIGGER);
-               // Only also send a reliable stop if self.noise is unused.
-               // Otherwise we may be stopping the destroy sound too.
-               if (!self.noise)
-                       stopsoundto (MSG_ALL, self, CH_TRIGGER);
-       }
+               stopsound (self, CH_TRIGGER);
 }
 
 void func_breakable_behave_restore()