From: Samual Date: Tue, 10 Jan 2012 04:42:26 +0000 (-0500) Subject: Add extra check to make sure that a client has called ClientConnect, this way it... X-Git-Tag: xonotic-v0.6.0~188^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1c0d4a4f1f1bc4098a54c4a405d008f49aaf9f0c;p=xonotic%2Fxonotic-data.pk3dir.git Add extra check to make sure that a client has called ClientConnect, this way it only sends the centerprints if the client is initialized --- diff --git a/qcsrc/server/miscfunctions.qc b/qcsrc/server/miscfunctions.qc index 4babf32b2..236bea73a 100644 --- a/qcsrc/server/miscfunctions.qc +++ b/qcsrc/server/miscfunctions.qc @@ -1606,7 +1606,7 @@ void precache() void Send_CSQC_Centerprint_Generic(entity e, float id, string s, float duration, float countdown_num) { - if (clienttype(e) == CLIENTTYPE_REAL) + if ((clienttype(e) == CLIENTTYPE_REAL) && (e.flags & FL_CLIENT)) { msg_entity = e; WRITESPECTATABLE_MSG_ONE({