equal
deleted
inserted
replaced
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)) { |