]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
MSG_ALL, SVC_TEMPENTITY is bad
authorRudolf Polzer <divverent@xonotic.org>
Fri, 21 Dec 2012 11:19:25 +0000 (12:19 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 21 Dec 2012 11:19:25 +0000 (12:19 +0100)
use MSG_BROADCAST

otherwise clients not yet connected fully (still loading maps or
csprogs) get kicked off because of not being able to
parse the messages.

qcsrc/server/cl_client.qc
qcsrc/server/g_damage.qc

index 627cf6c6ba5cddb3fda6d67aa6d1d689be564e4e..900217c952a8e05aba3e77e7ada6a52d37aa9846 100644 (file)
@@ -7,9 +7,9 @@ void send_CSQC_teamnagger() {
 }
 
 void Announce(string snd) {
-       WriteByte(MSG_ALL, SVC_TEMPENTITY);
-       WriteByte(MSG_ALL, TE_CSQC_ANNOUNCE);
-       WriteString(MSG_ALL, snd);
+       WriteByte(MSG_BROADCAST, SVC_TEMPENTITY);
+       WriteByte(MSG_BROADCAST, TE_CSQC_ANNOUNCE);
+       WriteString(MSG_BROADCAST, snd);
 }
 
 void AnnounceTo(entity e, string snd) {
index 189cd9b05633b3c8bc1fd0993f879156057533a3..2e5d9f4d606e0190225a37433460d117c31c8323 100644 (file)
@@ -310,13 +310,13 @@ void LogDeath(string mode, float deathtype, entity killer, entity killed)
 
 void Send_KillNotification (string s1, string s2, string s3, float msg, float type)
 {
-       WriteByte(MSG_ALL, SVC_TEMPENTITY);
-       WriteByte(MSG_ALL, TE_CSQC_KILLNOTIFY);
-       WriteString(MSG_ALL, s1);
-       WriteString(MSG_ALL, s2);
-       WriteString(MSG_ALL, s3);
-       WriteShort(MSG_ALL, msg);
-       WriteByte(MSG_ALL, type);
+       WriteByte(MSG_BROADCAST, SVC_TEMPENTITY);
+       WriteByte(MSG_BROADCAST, TE_CSQC_KILLNOTIFY);
+       WriteString(MSG_BROADCAST, s1);
+       WriteString(MSG_BROADCAST, s2);
+       WriteString(MSG_BROADCAST, s3);
+       WriteShort(MSG_BROADCAST, msg);
+       WriteByte(MSG_BROADCAST, type);
 }
 
 // Function is used to send a generic centerprint whose content CSQC gets to decide (gentle version or not in the below cases)