]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix music triggers a bit :P
authorRudolf Polzer <divverent@alientrap.org>
Sat, 8 May 2010 20:28:08 +0000 (22:28 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 8 May 2010 20:28:08 +0000 (22:28 +0200)
qcsrc/client/target_music.qc

index 4ef9a37aeb47f80e518c899a14af583e2550dfc3..2111347272bd8e331278606e752e9c26941fa587 100644 (file)
@@ -71,13 +71,14 @@ void Net_TargetMusic()
        {
                e = spawn();
                e.enttype = ENT_CLIENT_TRIGGER_MUSIC;
+               e.count = id;
        }
        s = e.noise;
-       if(e.noise)
-               strunzone(e.noise);
-       e.noise = strzone(noi);
        if(e.noise != s)
        {
+               if(e.noise)
+                       strunzone(e.noise);
+               e.noise = strzone(noi);
                precache_sound(e.noise);
                sound(e, CHAN_VOICE, e.noise, 0, ATTN_NONE);
                if(getsoundtime(e, CHAN_VOICE) < 0)