]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host_cmd.c
Clear message buffer before calling ClientConnect, rather than after.
[xonotic/darkplaces.git] / host_cmd.c
index d2411048a8f5e11d0e68b64bb2eefe9783bd6bcc..5f0ab5fb2a0d428bab9eb7fc6593faae3b76a0e7 100644 (file)
@@ -1006,6 +1006,10 @@ void Host_Spawn_f (void)
                return;
        }
 
+       // LordHavoc: moved this above the QC calls at FrikaC's request
+// send all current names, colors, and frag counts
+       SZ_Clear (&host_client->message);
+
 // run the entrance script
        if (sv.loadgame)
        {       // loaded games are fully inited allready
@@ -1052,9 +1056,6 @@ void Host_Spawn_f (void)
        }
 
 
-// send all current names, colors, and frag counts
-       SZ_Clear (&host_client->message);
-
 // send time of update
        MSG_WriteByte (&host_client->message, svc_time);
        MSG_WriteFloat (&host_client->message, sv.time);