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