]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/g_world.qc
Hack: mute all target_music entities when the match ends (fixes overlapping with...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / g_world.qc
index fc3eed45286cd110e4a697a050d40cbd0f3b63a3..d570cad530e9c18a8d7c99914e95283e89108228 100644 (file)
@@ -31,6 +31,7 @@
 #include "../common/stats.qh"
 #include "../common/teams.qh"
 #include "../common/triggers/trigger/secret.qh"
+#include "../common/triggers/target/music.qh"
 #include "../common/util.qh"
 #include "../common/items/all.qh"
 #include "../common/weapons/all.qh"
@@ -1546,6 +1547,10 @@ void NextLevel()
                        bprint(other.netname, " ^7wins.\n");
        }
 
+       entity oldself = self;
+       target_music_kill();
+       self = oldself;
+
        if(autocvar_g_campaign)
                CampaignPreIntermission();