]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix warning spam for bots using the tuba.
authorRudolf Polzer <divVerent@xonotic.org>
Wed, 19 Oct 2016 20:18:39 +0000 (16:18 -0400)
committerRudolf Polzer <divVerent@xonotic.org>
Wed, 19 Oct 2016 20:19:06 +0000 (16:19 -0400)
qcsrc/common/weapons/weapon/tuba.qc

index 546e59f2410099f36f94129c8e2e51fca53409a1..7f1bce0ace2741c05340c025a1f49524ce4969e1 100644 (file)
@@ -419,6 +419,8 @@ NET_HANDLE(tuba_instrument, bool)
 void tuba_instrument_send(entity this, int instr)
 {
        msg_entity = this;
+       if (!IS_REAL_CLIENT(this))
+               return;
        int chan = MSG_ONE;
        WriteHeader(chan, tuba_instrument);
        WriteByte(chan, instr);