From 1e09f5ada26ae88ba0c42d25527284caabefd0d4 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 19 Oct 2016 16:18:39 -0400 Subject: [PATCH] Fix warning spam for bots using the tuba. --- qcsrc/common/weapons/weapon/tuba.qc | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.2