(svn r14723) -Codechange: shuffling some stuff around to reduce indirect #include dependencies.

This commit is contained in:
rubidium
2008-12-23 11:06:52 +00:00
parent 768fdee77a
commit 97662a0fff
10 changed files with 48 additions and 18 deletions

View File

@@ -301,8 +301,8 @@ struct NetworkChatWindow : public QueryStringBaseWindow {
/* First, try clients */
if (*item < MAX_CLIENT_INFO) {
/* Skip inactive clients */
while (_network_client_info[*item].client_id == INVALID_CLIENT_ID && *item < MAX_CLIENT_INFO) (*item)++;
if (*item < MAX_CLIENT_INFO) return _network_client_info[*item].client_name;
while (GetNetworkClientInfo(*item)->client_id == INVALID_CLIENT_ID && *item < MAX_CLIENT_INFO) (*item)++;
if (*item < MAX_CLIENT_INFO) return GetNetworkClientInfo(*item)->client_name;
}
/* Then, try townnames */