]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't annoy bots with noise :)
authorRudolf Polzer <divverent@xonotic.org>
Wed, 25 Feb 2015 10:55:31 +0000 (11:55 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Wed, 25 Feb 2015 11:15:21 +0000 (12:15 +0100)
qcsrc/server/func_breakable.qc

index 6a651a0b0dc24e0bf3d51dfdb9813c4c2fd88b93..da0beaecb336c253a2915c2cf99615418416cea9 100644 (file)
@@ -144,7 +144,7 @@ void func_breakable_behave_restore()
 
 void func_breakable_init_for_player(entity player)
 {
-       if (self.noise1 && self.state == 0)
+       if (self.noise1 && self.state == 0 && clienttype(player) == CLIENTTYPE_REAL)
        {
                msg_entity = player;
                soundto (MSG_ONE, self, CH_TRIGGER_SINGLE, self.noise1, VOL_BASE, ATTEN_NORM);