network_server.c
changeset 4860 217cdf845a12
parent 4850 b4e9be22945f
child 4861 f28bfa84f9ad
equal deleted inserted replaced
4859:78e6a7d0f490 4860:217cdf845a12
   842 			SEND_COMMAND(PACKET_SERVER_ERROR)(cs, NETWORK_ERROR_CHEATER);
   842 			SEND_COMMAND(PACKET_SERVER_ERROR)(cs, NETWORK_ERROR_CHEATER);
   843 			return;
   843 			return;
   844 		}
   844 		}
   845 
   845 
   846 		// XXX - UGLY! p2 is mis-used to get the client-id in CmdPlayerCtrl
   846 		// XXX - UGLY! p2 is mis-used to get the client-id in CmdPlayerCtrl
       
   847 		cp->player = 0;
   847 		cp->p2 = cs - _clients;
   848 		cp->p2 = cs - _clients;
   848 	}
   849 	}
   849 
   850 
   850 	// The frame can be executed in the same frame as the next frame-packet
   851 	// The frame can be executed in the same frame as the next frame-packet
   851 	//  That frame just before that frame is saved in _frame_counter_max
   852 	//  That frame just before that frame is saved in _frame_counter_max