From: Mario Date: Wed, 7 May 2014 19:31:41 +0000 (+1000) Subject: Don't send target_music to bots, also send it to the spectators of the player who... X-Git-Tag: xonotic-v0.8.0~218^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=622e129644a46038d69b2ae9beacc5d51490f6b9;p=xonotic%2Fxonotic-data.pk3dir.git Don't send target_music to bots, also send it to the spectators of the player who triggered it --- 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() {