forked from mirror/OpenTTD
(svn r14717) -Change: more 'Index' -> ClientID to not confuse ClientID and ClientIndex
This commit is contained in:
@@ -316,7 +316,7 @@ struct MainWindow : Window
|
||||
#ifdef ENABLE_NETWORK
|
||||
case WKC_RETURN: case 'T': // smart chat; send to team if any, otherwise to all
|
||||
if (_networking) {
|
||||
const NetworkClientInfo *cio = NetworkFindClientInfoFromIndex(_network_own_client_id);
|
||||
const NetworkClientInfo *cio = NetworkFindClientInfoFromClientID(_network_own_client_id);
|
||||
if (cio == NULL) break;
|
||||
|
||||
ShowNetworkChatQueryWindow(NetworkClientPreferTeamChat(cio) ? DESTTYPE_TEAM : DESTTYPE_BROADCAST, cio->client_playas);
|
||||
@@ -329,7 +329,7 @@ struct MainWindow : Window
|
||||
|
||||
case WKC_CTRL | WKC_RETURN: case WKC_CTRL | 'T': // send text to all team mates
|
||||
if (_networking) {
|
||||
const NetworkClientInfo *cio = NetworkFindClientInfoFromIndex(_network_own_client_id);
|
||||
const NetworkClientInfo *cio = NetworkFindClientInfoFromClientID(_network_own_client_id);
|
||||
if (cio == NULL) break;
|
||||
|
||||
ShowNetworkChatQueryWindow(DESTTYPE_TEAM, cio->client_playas);
|
||||
|
Reference in New Issue
Block a user