(svn r7566) -Fix: only send commands to the new client from the map, that is going to be transfered to the new client, is saved on the server and not while waiting for the 'map download slot' as that will add commands for already passed frames in the command queue of the new client.
authorrubidium
Tue, 26 Dec 2006 18:27:40 +0000
changeset 5381 1f4ef7e8330f
parent 5380 8ea58542b6e0
child 5382 7afff50b3497
(svn r7566) -Fix: only send commands to the new client from the map, that is going to be transfered to the new client, is saved on the server and not while waiting for the 'map download slot' as that will add commands for already passed frames in the command queue of the new client.
network_server.c
--- a/network_server.c	Tue Dec 26 17:36:18 2006 +0000
+++ b/network_server.c	Tue Dec 26 18:27:40 2006 +0000
@@ -862,7 +862,7 @@
 	// Queue the command for the clients (are send at the end of the frame
 	//   if they can handle it ;))
 	FOR_ALL_CLIENTS(new_cs) {
-		if (new_cs->status > STATUS_AUTH) {
+		if (new_cs->status >= STATUS_MAP) {
 			// Callbacks are only send back to the client who sent them in the
 			//  first place. This filters that out.
 			cp->callback = (new_cs != cs) ? 0 : callback;