]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fixes an issue with custom announcers causing players to hear announcement sounds...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 22 Mar 2010 21:03:14 +0000 (23:03 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 22 Mar 2010 21:03:14 +0000 (23:03 +0200)
qcsrc/server/cl_client.qc

index c8fee27ae76f6e25d91f774cae7793869d9d7b20..0b6f3fd0b151f1bb0bfa38c59c2bce0adbb1e103 100644 (file)
@@ -13,10 +13,13 @@ void Announce(string snd) {
 }
 
 void AnnounceTo(entity e, string snd) {
-       msg_entity = e;
-       WriteByte(MSG_ONE, SVC_TEMPENTITY);
-       WriteByte(MSG_ONE, TE_CSQC_ANNOUNCE);
-       WriteString(MSG_ONE, snd);
+       if (clienttype(e) == CLIENTTYPE_REAL)
+       {
+               msg_entity = e;
+               WriteByte(MSG_ONE, SVC_TEMPENTITY);
+               WriteByte(MSG_ONE, TE_CSQC_ANNOUNCE);
+               WriteString(MSG_ONE, snd);
+       }
 }
 
 float ClientData_Send(entity to, float sf)