main_gui.c
changeset 4889 02a05885ce68
parent 4887 71da70810c22
child 4890 7a3648cdfb68
equal deleted inserted replaced
4888:acb34a8e5b13 4889:02a05885ce68
  2326 				break;
  2326 				break;
  2327 
  2327 
  2328 #ifdef ENABLE_NETWORK
  2328 #ifdef ENABLE_NETWORK
  2329 			case WKC_RETURN: case 'T': // smart chat; send to team if any, otherwise to all
  2329 			case WKC_RETURN: case 'T': // smart chat; send to team if any, otherwise to all
  2330 				if (_networking) {
  2330 				if (_networking) {
  2331 					const NetworkClientInfo *ci;
  2331 					const NetworkClientInfo *ci = NULL;
  2332 					const NetworkClientInfo *cio = NetworkFindClientInfoFromIndex(_network_own_client_index);
  2332 					const NetworkClientInfo *cio = NetworkFindClientInfoFromIndex(_network_own_client_index);
  2333 					bool has_team = false;
  2333 					bool has_team = false;
  2334 
  2334 
  2335 					/* Only players actually playing can speak to team. Eg spectators cannot */
  2335 					/* Only players actually playing can speak to team. Eg spectators cannot */
  2336 					if (IsValidPlayer(cio->client_playas)) {
  2336 					if (IsValidPlayer(cio->client_playas)) {