From 622e129644a46038d69b2ae9beacc5d51490f6b9 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 8 May 2014 05:31:41 +1000 Subject: [PATCH] Don't send target_music to bots, also send it to the spectators of the player who triggered it --- qcsrc/server/target_music.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/server/target_music.qc b/qcsrc/server/target_music.qc index 769416c46..600af861a 100644 --- a/qcsrc/server/target_music.qc +++ b/qcsrc/server/target_music.qc @@ -28,8 +28,12 @@ void target_music_use() { if(!activator) return; + if(!IS_REAL_CLIENT(activator)) + return; msg_entity = activator; target_music_sendto(MSG_ONE, 1); + entity head; + FOR_EACH_SPEC(head) if(head.enemy == activator) { msg_entity = head; target_music_sendto(MSG_ONE, 1); } } void spawnfunc_target_music() { -- 2.39.2