]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add extra check to make sure that a client has called ClientConnect, this way it...
authorSamual <samual@xonotic.org>
Tue, 10 Jan 2012 04:42:26 +0000 (23:42 -0500)
committerSamual <samual@xonotic.org>
Tue, 10 Jan 2012 04:42:26 +0000 (23:42 -0500)
qcsrc/server/miscfunctions.qc

index 4babf32b22eb8c9e8cb8db51b5c7b066b488becf..236bea73a2ecda59e3553c7dc91243418b6b804a 100644 (file)
@@ -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({