]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use the right sound channel.
authorRudolf Polzer <divverent@xonotic.org>
Sat, 21 Feb 2015 14:17:30 +0000 (15:17 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 21 Feb 2015 14:17:30 +0000 (15:17 +0100)
qcsrc/server/func_breakable.qc

index 3b7065d2a30aa698b82d15614c384247083b5791..a8cca1e86a4f6d34cc922019d3e9e3d41bb7bbaa 100644 (file)
@@ -121,7 +121,7 @@ void func_breakable_behave_destroyed()
        self.state = 1;
        func_breakable_colormod();
        if (self.noise1)
-               stopsound (self, CH_TRIGGER);
+               stopsound (self, CH_TRIGGER_SINGLE);
 }
 
 void func_breakable_behave_restore()
@@ -139,7 +139,7 @@ void func_breakable_behave_restore()
        self.nextthink = 0; // cancel auto respawn
        func_breakable_colormod();
        if (self.noise1)
-               sound (self, CH_TRIGGER, self.noise1, VOL_BASE, ATTEN_NORM);
+               sound (self, CH_TRIGGER_SINGLE, self.noise1, VOL_BASE, ATTEN_NORM);
 }
 
 void func_breakable_destroyed()