]> git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/miscfunctions.qc
Fix Nexuiz's "players hear bot announcers" bug
[voretournament/voretournament.git] / data / qcsrc / server / miscfunctions.qc
index 766b57c6bc11278f4f137374e1e1b7bfdc608659..93e162b1d5e2bf23361756b2741ae3dc59777d7c 100644 (file)
@@ -1262,8 +1262,11 @@ void stopsound(entity e, float chan)
 void play2(entity e, string filename)\r
 {\r
     //stuffcmd(e, strcat("play2 ", filename, "\n"));\r
-    msg_entity = e;\r
-    soundtoat(MSG_ONE, world, '0 0 0', CHAN_AUTO, filename, VOL_BASE, ATTN_NONE);\r
+    if (clienttype(e) == CLIENTTYPE_REAL)\r
+    {\r
+        msg_entity = e;\r
+        soundtoat(MSG_ONE, world, '0 0 0', CHAN_AUTO, filename, VOL_BASE, ATTN_NONE);\r
+    }\r
 }\r
 \r
 // use this one if you might be causing spam (e.g. from touch functions that might get called more than once per frame)\r