From: Rudolf Polzer Date: Wed, 19 Oct 2016 20:18:39 +0000 (-0400) Subject: Fix warning spam for bots using the tuba. X-Git-Tag: xonotic-v0.8.2~500 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1e09f5ada26ae88ba0c42d25527284caabefd0d4;p=xonotic%2Fxonotic-data.pk3dir.git Fix warning spam for bots using the tuba. --- diff --git a/qcsrc/common/weapons/weapon/tuba.qc b/qcsrc/common/weapons/weapon/tuba.qc index 546e59f24..7f1bce0ac 100644 --- a/qcsrc/common/weapons/weapon/tuba.qc +++ b/qcsrc/common/weapons/weapon/tuba.qc @@ -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);