network_client.c
changeset 2702 9172e3030a35
parent 2684 4df784e4be66
child 2817 cdf488223c23
equal deleted inserted replaced
2701:210933e3fe4d 2702:9172e3030a35
   344 
   344 
   345 	/* Do we receive a change of data? Most likely we changed playas */
   345 	/* Do we receive a change of data? Most likely we changed playas */
   346 	if (index == _network_own_client_index) {
   346 	if (index == _network_own_client_index) {
   347 		_network_playas = playas;
   347 		_network_playas = playas;
   348 
   348 
   349 		/* Are we a ai-network-client? */
   349 		/* Are we a ai-network-client? Are we not joining as a SPECTATOR (playas == 0, means SPECTATOR) */
   350 		if (_ai.network_client) {
   350 		if (_ai.network_client && playas != 0) {
   351 			if (_ai.network_playas == OWNER_SPECTATOR)
   351 			if (_ai.network_playas == OWNER_SPECTATOR)
   352 				AI_StartNewAI(playas - 1);
   352 				AI_StartNewAI(playas - 1);
   353 
   353 
   354 			_ai.network_playas = playas - 1;
   354 			_ai.network_playas = playas - 1;
   355 		}
   355 		}