]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't send target_music to bots, also send it to the spectators of the player who...
authorMario <mario.mario@y7mail.com>
Wed, 7 May 2014 19:31:41 +0000 (05:31 +1000)
committerMario <mario.mario@y7mail.com>
Wed, 7 May 2014 19:31:41 +0000 (05:31 +1000)
qcsrc/server/target_music.qc

index 769416c467e534441279a52222fd802e283d26ac..600af861ac956c55cba7a867ee567aa03b59bc5a 100644 (file)
@@ -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()
 {