players.c
changeset 690 3afcad69d4f7
parent 688 1bf7db6d29b7
child 717 ca707fc756ed
equal deleted inserted replaced
689:5a4b1536db82 690:3afcad69d4f7
   663 				ci = &_network_client_info[p2];
   663 				ci = &_network_client_info[p2];
   664 				ci->client_playas = p->index + 1;
   664 				ci->client_playas = p->index + 1;
   665 				NetworkUpdateClientInfo(ci->client_index);
   665 				NetworkUpdateClientInfo(ci->client_index);
   666 
   666 
   667 				if (ci->client_playas != 0 && ci->client_playas <= MAX_PLAYERS) {
   667 				if (ci->client_playas != 0 && ci->client_playas <= MAX_PLAYERS) {
       
   668 					_network_player_info[p->index].months_empty = 0;
       
   669 
   668 					memcpy(_decode_parameters, ci->client_name, 32);
   670 					memcpy(_decode_parameters, ci->client_name, 32);
   669 					/* XXX - What are the consequents of this? It is needed, but is it bad? */
   671 					/* XXX - What are the consequents of this? It is needed, but is it bad? */
   670 					_docommand_recursive = 0;
   672 					_docommand_recursive = 0;
   671 					DoCommandP(0, ci->client_playas-1, 0, NULL, CMD_CHANGE_PRESIDENT_NAME | CMD_MSG(STR_700D_CAN_T_CHANGE_PRESIDENT));
   673 					DoCommandP(0, ci->client_playas-1, 0, NULL, CMD_CHANGE_PRESIDENT_NAME | CMD_MSG(STR_700D_CAN_T_CHANGE_PRESIDENT));
   672 				}
   674 				}