src/main_gui.cpp
changeset 9652 0405e98d8e96
parent 9533 e8b86b70c5f6
child 9913 d9ce89020cc0
equal deleted inserted replaced
9651:1285c0b3a4de 9652:0405e98d8e96
   340 					bool teamchat = false;
   340 					bool teamchat = false;
   341 
   341 
   342 					if (cio == NULL) break;
   342 					if (cio == NULL) break;
   343 
   343 
   344 					/* Only players actually playing can speak to team. Eg spectators cannot */
   344 					/* Only players actually playing can speak to team. Eg spectators cannot */
   345 					if (_settings_client.gui.prefer_teamchat && IsValidPlayer(cio->client_playas)) {
   345 					if (_settings_client.gui.prefer_teamchat && IsValidPlayerID(cio->client_playas)) {
   346 						const NetworkClientInfo *ci;
   346 						const NetworkClientInfo *ci;
   347 						FOR_ALL_ACTIVE_CLIENT_INFOS(ci) {
   347 						FOR_ALL_ACTIVE_CLIENT_INFOS(ci) {
   348 							if (ci->client_playas == cio->client_playas && ci != cio) {
   348 							if (ci->client_playas == cio->client_playas && ci != cio) {
   349 								teamchat = true;
   349 								teamchat = true;
   350 								break;
   350 								break;