From 1c0d4a4f1f1bc4098a54c4a405d008f49aaf9f0c Mon Sep 17 00:00:00 2001 From: Samual Date: Mon, 9 Jan 2012 23:42:26 -0500 Subject: [PATCH] Add extra check to make sure that a client has called ClientConnect, this way it only sends the centerprints if the client is initialized --- qcsrc/server/miscfunctions.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({ -- 2.39.2